view src/parallel_execution/TaskManager.cbc @ 338:0d720487291f

remove stub from RedBlackTree.cbc
author mir3636
date Tue, 09 May 2017 12:08:29 +0900
parents f23f6d0aa4e9
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;