CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
tqthreadworker.cxh
1#include "tqworker.cxh"
2#include <cx/thread.h>
3
4class TQThreadWorker extends TQWorker {
5 object:Thread thr; // worker thread
6 atomic:ptr curtask; // this worker's currently running task
7 TQUICallback ui;
8 int32 num; // worker number
9 bool shutdown;
10
11 factory create(int32 num);
12 bool startThread([in] TaskQueue *tq);
13}