view src/parallel_execution/TaskManager.h @ 482:5859bed4edff

Refactoring spawnTasks method
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Fri, 29 Dec 2017 04:42:44 +0900
parents 6b71cf5b1c22
children
line wrap: on
line source

typedef struct TaskManager<Impl>{
    union Data* taskManager;
    struct Context* task;
    struct Element* taskList;
    __code spawn(Impl* taskManager, struct Context* task, __code next(...));
    __code spawnTasks(Impl* taskManagerImpl, struct Element* taskList, __code next1(...));
    __code setWaitTask(Impl* taskManagerImpl, struct Context* task, __code next(...));
    __code shutdown(Impl* taskManagerImpl, __code next(...));
    __code incrementTaskCount(Impl* taskManagerImpl, __code next(...));
    __code decrementTaskCount(Impl* taskManagerImpl, __code next(...));
    __code next(...);
    __code next1(...);
} TaskManager;