M1M3 Support System
|
The controller thread is responsible for executing commands. More...
#include <ControllerThread.h>
Public Member Functions | |
void | run () |
void | stop () |
void | enqueue (Command *command) |
Put command into queue. | |
Static Public Member Functions | |
static ControllerThread & | get () |
Return singleton instance. | |
The controller thread is responsible for executing commands.
Holds command queue. Command is enqueued in SubscriberThread after being received from SAL. Command is then dequeued in ControllerThread and passed to the Controller::execute method. Singleton, as only a single instance should occur in an application. Runs in a single thread - provides guarantee that only single command is being executed in any moment.
|
static |
Return singleton instance.