25 #include <lunchbox/thread.h>
29 # define CO_WORKER_API CO_API
35 template<
class Q >
class WorkerThread :
public lunchbox::Thread
39 WorkerThread(
const size_t maxSize = ULONG_MAX ) : _commands( maxSize ) {}
49 CO_WORKER_API
void run()
override;
62 typedef WorkerThread< CommandQueue > Worker;
Defines export visibility macros for 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.