Mercurial > hg > GearsTemplate
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 |
rev | line source |
---|---|
280 | 1 typedef struct TaskManager<Impl>{ |
269 | 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 | 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 | 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 | 12 int worker; |
13 int cpu; | |
14 int gpu; | |
15 int io; | |
16 int maxCPU; | |
17 } TaskManager; |