MythTV
master
|
QRunnable class for running MythSystemEvent handler commands. More...
Public Member Functions | |
SystemEventThread (QString cmd, QString eventName="") | |
Constructor for creating a SystemEventThread. More... | |
void | run (void) override |
Runs the System Event handler command. More... | |
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 29 of file mythsystemevent.cpp.
|
inlineexplicit |
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 38 of file mythsystemevent.cpp.
|
inlineoverride |
Runs the System Event handler command.
Overrides QRunnable::run()
Definition at line 46 of file mythsystemevent.cpp.
|
private |
Definition at line 67 of file mythsystemevent.cpp.
Referenced by run().
|
private |
Definition at line 68 of file mythsystemevent.cpp.
Referenced by run().