MythTV
master
mythtv
libs
libmythtv
recorders
HLS
HLSPlaylistWorker.h
Go to the documentation of this file.
1
#ifndef HLS_PLAYLIST_WORKER_H
2
#define HLS_PLAYLIST_WORKER_H
3
4
#include <QWaitCondition>
5
#include <QMutex>
6
7
#include "
libmythbase/mthread.h
"
8
9
class
HLSReader
;
10
11
class
HLSPlaylistWorker
:
public
MThread
12
{
13
public
:
14
explicit
HLSPlaylistWorker
(
HLSReader
* parent);
15
~HLSPlaylistWorker
(
void
)
override
;
16
17
void
Cancel
(
void
);
18
19
protected
:
20
void
run
()
override
;
// MThread
21
22
private
:
23
// Class vars
24
HLSReader
*
m_parent
{
nullptr
};
25
bool
m_cancel
{
false
};
26
bool
m_wokenup
{
false
};
27
28
QWaitCondition
m_waitcond
;
29
QMutex
m_lock
;
30
};
31
32
#endif // HLS_PLAYLIST_WORKER_H
HLSPlaylistWorker
Definition:
HLSPlaylistWorker.h:11
HLSPlaylistWorker::m_parent
HLSReader * m_parent
Definition:
HLSPlaylistWorker.h:24
HLSPlaylistWorker::m_waitcond
QWaitCondition m_waitcond
Definition:
HLSPlaylistWorker.h:28
HLSPlaylistWorker::m_wokenup
bool m_wokenup
Definition:
HLSPlaylistWorker.h:26
HLSPlaylistWorker::~HLSPlaylistWorker
~HLSPlaylistWorker(void) override
Definition:
HLSPlaylistWorker.cpp:15
HLSPlaylistWorker::m_cancel
bool m_cancel
Definition:
HLSPlaylistWorker.h:25
HLSReader
Definition:
HLSReader.h:34
HLSPlaylistWorker::Cancel
void Cancel(void)
Definition:
HLSPlaylistWorker.cpp:20
MThread
This is a wrapper around QThread that does several additional things.
Definition:
mthread.h:48
mthread.h
HLSPlaylistWorker::HLSPlaylistWorker
HLSPlaylistWorker(HLSReader *parent)
Definition:
HLSPlaylistWorker.cpp:9
HLSPlaylistWorker::run
void run() override
Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
Definition:
HLSPlaylistWorker.cpp:31
HLSPlaylistWorker::m_lock
QMutex m_lock
Definition:
HLSPlaylistWorker.h:29
Generated on Tue Jan 7 2025 03:18:33 for MythTV by
1.8.17