MythTV master
HLSPlaylistWorker.h
Go to the documentation of this file.
1#ifndef HLS_PLAYLIST_WORKER_H
2#define HLS_PLAYLIST_WORKER_H
3
4#include <QChar> // Fix Qt6 GCC SFINAE warning
5#include <QWaitCondition>
6#include <QMutex>
7
9
10class HLSReader;
11
13{
14 public:
15 explicit HLSPlaylistWorker(HLSReader* parent);
16 ~HLSPlaylistWorker(void) override;
17
18 void Cancel(void);
19
20 protected:
21 void run() override; // MThread
22
23 private:
24 // Class vars
25 HLSReader *m_parent {nullptr};
26 bool m_cancel {false};
27 bool m_wokenup {false};
28
29 QWaitCondition m_waitcond;
30 QMutex m_lock;
31};
32
33#endif // HLS_PLAYLIST_WORKER_H
HLSPlaylistWorker(HLSReader *parent)
QWaitCondition m_waitcond
~HLSPlaylistWorker(void) override
void run() override
Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
This is a wrapper around QThread that does several additional things.
Definition: mthread.h:49