32 #include "../api_core.h"
48 virtual void process_work() = 0;
71 void queue(
const std::function<
void()> &func);
74 void work_completed(
const std::function<
void()> &func);
77 int get_items_queued()
const;
81 std::shared_ptr<WorkQueue_Impl> impl;
virtual ~WorkItem()
Definition: work_queue.h:45
Interface for executing work on a worker thread.
Definition: work_queue.h:42
virtual void work_completed()
Called by the WorkQueue thread to complete the work.
Definition: work_queue.h:51
Thread pool for worker threads.
Definition: work_queue.h:57