annotate src/parallel_execution/TaskManager.cbc @ 313:4addbc7469ee

fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 15 Feb 2017 11:36:10 +0900
parents 2c2e4e597eb0
children f23f6d0aa4e9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
280
2c2e4e597eb0 generate no compile errors
mir3636
parents: 269
diff changeset
1 typedef struct TaskManager<Impl>{
269
5170539348ec rename TaskManagerImpl.cbc
mir3636
parents: 267
diff changeset
2 union Data* taskManager;
5170539348ec rename TaskManagerImpl.cbc
mir3636
parents: 267
diff changeset
3 __code createTask(struct TaskManager* taskManager);
5170539348ec rename TaskManagerImpl.cbc
mir3636
parents: 267
diff changeset
4 __code spawn(Impl* taskManager, struct Queue* queue, struct Context* task, __code next(...));
5170539348ec rename TaskManagerImpl.cbc
mir3636
parents: 267
diff changeset
5 __code shutdown(struct LoopCounter* loopCounter, struct TaskManager* taskManager, Impl* taskManagerImpl, struct Queue* queue, __code next(...));
5170539348ec rename TaskManagerImpl.cbc
mir3636
parents: 267
diff changeset
6 __code next(...);
5170539348ec rename TaskManagerImpl.cbc
mir3636
parents: 267
diff changeset
7 __code task(...);
5170539348ec rename TaskManagerImpl.cbc
mir3636
parents: 267
diff changeset
8 struct Context* context;
5170539348ec rename TaskManagerImpl.cbc
mir3636
parents: 267
diff changeset
9 int worker;
5170539348ec rename TaskManagerImpl.cbc
mir3636
parents: 267
diff changeset
10 int cpu;
5170539348ec rename TaskManagerImpl.cbc
mir3636
parents: 267
diff changeset
11 int gpu;
5170539348ec rename TaskManagerImpl.cbc
mir3636
parents: 267
diff changeset
12 int io;
5170539348ec rename TaskManagerImpl.cbc
mir3636
parents: 267
diff changeset
13 int maxCPU;
5170539348ec rename TaskManagerImpl.cbc
mir3636
parents: 267
diff changeset
14 } TaskManager;