|
MythTV
0.26-pre
|
#include <taskqueue.h>
Public Member Functions | |
| virtual | ~TaskQueue () |
| void | RequestTerminate () |
| void | Clear () |
| void | AddTask (long msec, Task *pTask) |
| void | AddTask (TaskTime tt, Task *pTask) |
| void | AddTask (Task *pTask) |
| Task * | GetNextExpiredTask (TaskTime tt, long nWithinMilliSecs=50) |
Static Public Member Functions | |
| static TaskQueue * | Instance () |
| static void | Shutdown () |
Protected Member Functions | |
| bool | IsTermRequested () |
| virtual void | run () |
| Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead. | |
Protected Attributes | |
| TaskMap | m_mapTasks |
| QMutex | m_mutex |
| bool | m_bTermRequested |
Private Member Functions | |
| TaskQueue () | |
Static Private Attributes | |
| static TaskQueue * | g_pTaskQueue = NULL |
Definition at line 79 of file taskqueue.h.
| TaskQueue::TaskQueue | ( | ) | [private] |
Definition at line 87 of file taskqueue.cpp.
Referenced by Instance().
| TaskQueue::~TaskQueue | ( | ) | [virtual] |
Definition at line 100 of file taskqueue.cpp.
| bool TaskQueue::IsTermRequested | ( | ) | [protected] |
| void TaskQueue::run | ( | void | ) | [protected, virtual] |
Runs the Qt event loop unless we have a QRunnable, in which case we run the runnable run instead.
Reimplemented from MThread.
Definition at line 118 of file taskqueue.cpp.
| TaskQueue * TaskQueue::Instance | ( | ) | [static] |
Definition at line 66 of file taskqueue.cpp.
Referenced by cleanup(), and Eventing::NotifySubscriber().
| void TaskQueue::Shutdown | ( | void | ) | [static] |
Definition at line 76 of file taskqueue.cpp.
Referenced by MythContext::~MythContext().
Definition at line 109 of file taskqueue.cpp.
Referenced by cleanup().
| void TaskQueue::Clear | ( | void | ) |
Definition at line 160 of file taskqueue.cpp.
Referenced by ~TaskQueue().
| void TaskQueue::AddTask | ( | long | msec, |
| Task * | pTask | ||
| ) |
Definition at line 181 of file taskqueue.cpp.
Referenced by AddTask(), SSDPCacheTask::Execute(), UPnpNotifyTask::Execute(), and Eventing::NotifySubscriber().
| void TaskQueue::AddTask | ( | TaskTime | tt, |
| Task * | pTask | ||
| ) |
Definition at line 195 of file taskqueue.cpp.
| void TaskQueue::AddTask | ( | Task * | pTask | ) |
Definition at line 211 of file taskqueue.cpp.
| Task * TaskQueue::GetNextExpiredTask | ( | TaskTime | tt, |
| long | nWithinMilliSecs = 50 |
||
| ) |
Definition at line 227 of file taskqueue.cpp.
Referenced by run().
TaskQueue * TaskQueue::g_pTaskQueue = NULL [static, private] |
Definition at line 84 of file taskqueue.h.
Referenced by Instance(), and Shutdown().
TaskMap TaskQueue::m_mapTasks [protected] |
Definition at line 88 of file taskqueue.h.
Referenced by AddTask(), Clear(), and GetNextExpiredTask().
QMutex TaskQueue::m_mutex [protected] |
Definition at line 89 of file taskqueue.h.
Referenced by AddTask(), Clear(), and GetNextExpiredTask().
bool TaskQueue::m_bTermRequested [protected] |
Definition at line 90 of file taskqueue.h.
Referenced by RequestTerminate(), run(), and ~TaskQueue().
1.7.6.1