26 std::thread task_thread;
28 std::queue<std::function<void()>> task_queue;
30 bool thread_exited =
true;
51 void push(std::function<
void()> task);
TaskQueue()
Constructor, starts the internal thread.
Definition task_queue.cpp:5
void push(std::function< void()> task)
Push a task in the queue.
Definition task_queue.cpp:42
~TaskQueue()
Destructor. Waits for remaining tasks before exiting.
Definition task_queue.cpp:7