CX Framework
Cross-platform C utility framework
Loading...
Searching...
No Matches
tqmanager.cxh
1#include <cx/taskqueue/taskqueue_shared.h>
2
3class TaskQueue;
4
5// absolute maximum time between manager cycles
6#define MAX_MANAGER_INTERVAL (timeS(10))
7
8abstract class TQManager {
9 object:TaskQueue tq;
10 bool needsWorkerTick; // true if this manager needs to be ticked by the worker
11
12 bool start([in] TaskQueue *tq);
13 bool stop();
14 void notify(bool wakeup);
15 void pretask(); // for in-worker managers, this is called BEFORE a task is run by the worker
16 int64 tick();
17}