diff 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 diff
--- a/src/parallel_execution/TaskManager.cbc	Tue Aug 01 17:50:23 2017 +0900
+++ b/src/parallel_execution/TaskManager.cbc	Tue Aug 01 17:53:26 2017 +0900
@@ -1,12 +1,12 @@
 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(struct TaskManager* taskManager, Impl* taskManagerImpl, struct Context** contexts);
+    __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(...);
-    __code task(...);
-    struct Context* context;
     int worker;
     int cpu;
     int gpu;