|
MythTV
0.26-pre
|
QRunnable class for running MythSystemEvent handler commands. More...
Public Member Functions | |
| SystemEventThread (const QString cmd, QString eventName="") | |
| Constructor for creating a SystemEventThread. | |
| void | run (void) |
| Runs the System Event handler command. | |
Private Attributes | |
| QString | m_command |
| QString | m_event |
QRunnable class for running MythSystemEvent handler commands.
The SystemEventThread class runs a system event handler command in non-blocking mode. The commands are run in the MThreadPool::globalInstance, but we release and reserve the thread inside run() so that long-running commands to not block other short-running commands from executing if we hit MThreadPool::maxThreadCount().
Definition at line 26 of file mythsystemevent.cpp.
| SystemEventThread::SystemEventThread | ( | const QString | cmd, |
| QString | eventName = "" |
||
| ) | [inline] |
Constructor for creating a SystemEventThread.
| cmd | Command line to run for this System Event |
| eventName | Optional System Event name for this command |
Definition at line 35 of file mythsystemevent.cpp.
| SystemEventThread::run | ( | void | ) | [inline] |
Runs the System Event handler command.
Overrides QRunnable::run()
Definition at line 43 of file mythsystemevent.cpp.
QString SystemEventThread::m_command [private] |
Definition at line 67 of file mythsystemevent.cpp.
Referenced by run().
QString SystemEventThread::m_event [private] |
Definition at line 68 of file mythsystemevent.cpp.
Referenced by run().
1.7.6.1