Mercurial > hg > GearsTemplate
view src/parallel_execution/TaskManager.cbc @ 374:fb50cf8aa615
Add Iterator Interface
author | Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 18 Jul 2017 15:14:08 +0900 |
parents | b07078bd1f2c |
children | 36964b9ac5fd |
line wrap: on
line source
typedef struct TaskManager<Impl>{ union Data* taskManager; __code spawn(Impl* taskManager, struct Queue* queue, struct Context* task, __code next(...)); __code spawnTasks(struct TaskManager* taskManager, Impl* taskManagerImpl, struct Context** contexts); __code shutdown(struct LoopCounter* loopCounter, struct TaskManager* taskManager, Impl* taskManagerImpl, struct Queue* queue, __code next(...)); __code next(...); __code next1(...); __code task(...); struct Context* context; int worker; int cpu; int gpu; int io; int maxCPU; } TaskManager;