view src/parallel_execution/TaskManager.cbc @ 392:36964b9ac5fd

Fix taskManager
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Tue, 01 Aug 2017 17:53:26 +0900
parents fb50cf8aa615
children fc4fcd441700
line wrap: on
line source

typedef struct TaskManager<Impl>{
    union Data* taskManager;
    struct Context* context;
    struct Context** tasks;
    __code spawn(Impl* taskManager, struct Queue* queue, struct Context* task, __code next(...));
    __code spawnTasks(Impl* taskManagerImpl, struct Context** tasks, __code next1(...), struct TaskManager* taskManager);
    __code shutdown(struct LoopCounter* loopCounter, struct TaskManager* taskManager, Impl* taskManagerImpl, struct Queue* queue, __code next(...));
    __code next(...);
    __code next1(...);
    int worker;
    int cpu;
    int gpu;
    int io;
    int maxCPU;
} TaskManager;