annotate src/parallel_execution/TaskManager.cbc @ 280:2c2e4e597eb0
generate no compile errors
author |
mir3636 |
date |
Fri, 03 Feb 2017 17:47:27 +0900 (2017-02-03) |
parents |
5170539348ec |
children |
f23f6d0aa4e9 |
rev |
line source |
280
|
1 typedef struct TaskManager<Impl>{
|
269
|
2 union Data* taskManager;
|
|
3 __code createTask(struct TaskManager* taskManager);
|
|
4 __code spawn(Impl* taskManager, struct Queue* queue, struct Context* task, __code next(...));
|
|
5 __code shutdown(struct LoopCounter* loopCounter, struct TaskManager* taskManager, Impl* taskManagerImpl, struct Queue* queue, __code next(...));
|
|
6 __code next(...);
|
|
7 __code task(...);
|
|
8 struct Context* context;
|
|
9 int worker;
|
|
10 int cpu;
|
|
11 int gpu;
|
|
12 int io;
|
|
13 int maxCPU;
|
|
14 } TaskManager;
|