annotate src/parallel_execution/TaskManager.cbc @ 405:8915fce522b3

Fix shutdown TaskManager
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Tue, 05 Sep 2017 16:46:31 +0900
parents fc4fcd441700
children 57c715bd6283
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;
392
36964b9ac5fd Fix taskManager
Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
parents: 374
diff changeset
3 struct Context* context;
36964b9ac5fd Fix taskManager
Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
parents: 374
diff changeset
4 struct Context** tasks;
269
5170539348ec rename TaskManagerImpl.cbc
mir3636
parents: 267
diff changeset
5 __code spawn(Impl* taskManager, struct Queue* queue, struct Context* task, __code next(...));
392
36964b9ac5fd Fix taskManager
Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
parents: 374
diff changeset
6 __code spawnTasks(Impl* taskManagerImpl, struct Context** tasks, __code next1(...), struct TaskManager* taskManager);
398
fc4fcd441700 Fix spanwTasks
Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
parents: 392
diff changeset
7 __code shutdown(Impl* taskManagerImpl, __code next(...), struct TaskManager* taskManager, struct Queue* queue);
405
8915fce522b3 Fix shutdown TaskManager
Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
parents: 398
diff changeset
8 __code incrementTaskCount(Impl* taskManagerImpl, __code next(...));
8915fce522b3 Fix shutdown TaskManager
Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
parents: 398
diff changeset
9 __code decrementTaskCount(Impl* taskManagerImpl, __code next(...));
269
5170539348ec rename TaskManagerImpl.cbc
mir3636
parents: 267
diff changeset
10 __code next(...);
374
fb50cf8aa615 Add Iterator Interface
Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
parents: 353
diff changeset
11 __code next1(...);
269
5170539348ec rename TaskManagerImpl.cbc
mir3636
parents: 267
diff changeset
12 int worker;
5170539348ec rename TaskManagerImpl.cbc
mir3636
parents: 267
diff changeset
13 int cpu;
5170539348ec rename TaskManagerImpl.cbc
mir3636
parents: 267
diff changeset
14 int gpu;
5170539348ec rename TaskManagerImpl.cbc
mir3636
parents: 267
diff changeset
15 int io;
5170539348ec rename TaskManagerImpl.cbc
mir3636
parents: 267
diff changeset
16 int maxCPU;
5170539348ec rename TaskManagerImpl.cbc
mir3636
parents: 267
diff changeset
17 } TaskManager;