24#ifndef CONTROLLERTHREAD_H_
25#define CONTROLLERTHREAD_H_
29#include <condition_variable>
71 void _execute(
Command *command);
75 std::queue<Command *> _queue;
76 std::condition_variable _cv;
Parent class for all commands.
Definition Command.h:42
The controller thread is responsible for executing commands.
Definition ControllerThread.h:46
void enqueue(Command *command)
Put command into queue.
Definition ControllerThread.cpp:78
static ControllerThread & get()
Return singleton instance.
Definition ControllerThread.cpp:39