CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
tqrthreadpool.cxh
1#include "tqrunner.cxh"
2#include <cx/taskqueue/worker/tqthreadworker.cxh>
3#include <cx/thread/rwlock.h>
4
5class TaskQueue;
6class TQThreadWorker;
7
8class TQThreadPoolRunner extends TQRunner {
9 TaskQueueThreadPoolConfig conf;
10 RWLock workerlock;
11 sarray:object:TQThreadWorker workers;
12 Event workershutdown;
13
14 bool addWorker();
15 bool removeWorker();
16
17 [sal _objfactory_guaranteed] TQThreadWorker *createWorker(int32 num); // worker factory for custom queues to override
18 override start;
19 override stop;
20
21 factory create ([in] TaskQueueThreadPoolConfig *config);
22}