Mercurial > hg > GearsTemplate
view src/parallel_execution/TaskManager.cbc @ 326:f23f6d0aa4e9 examples_directory
Add examples/calc.cbc and build but not work
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 18 Apr 2017 01:47:42 +0900 |
parents | 2c2e4e597eb0 |
children | b07078bd1f2c |
line wrap: on
line source
typedef struct TaskManager<Impl>{ union Data* taskManager; __code createTask(struct TaskManager* taskManager); __code spawn(Impl* taskManager, struct Queue* queue, struct Context* task, __code next(...)); __code setWaitTask(struct Queue* queue, struct Context* task, __code next(...)); __code shutdown(struct LoopCounter* loopCounter, struct TaskManager* taskManager, Impl* taskManagerImpl, struct Queue* queue, __code next(...)); __code next(...); __code task(...); struct Context* context; int worker; int cpu; int gpu; int io; int maxCPU; } TaskManager;