25 #include <lunchbox/thread.h>
29 # define CO_WORKER_API CO_API
31 # define CO_WORKER_API
37 template<
class Q >
class WorkerThread :
public lunchbox::Thread
42 : _commands( maxSize ) {}
52 CO_WORKER_API
void run()
override;
65 typedef WorkerThread< CommandQueue > Worker;
Defines export visibility macros for library Collage.
CO_WORKER_API void run() override
WorkerThread(const size_t maxSize=ULONG_MAX)
Construct a new worker thread.
virtual bool stopRunning()
virtual bool notifyIdle()
virtual ~WorkerThread()
Destruct the worker.