diff src/parallel_execution/CPUWorker.cbc @ 459:57c715bd6283

Change taskManager parameter from context to task
author Tatsuki IHA <innparusu@cr.ie.u-ryukyu.ac.jp>
date Sat, 16 Dec 2017 06:04:32 +0900
parents d3d7a7d6a117
children 8d7e5d48cad3
line wrap: on
line diff
--- a/src/parallel_execution/CPUWorker.cbc	Thu Dec 14 07:44:58 2017 +0900
+++ b/src/parallel_execution/CPUWorker.cbc	Sat Dec 16 06:04:32 2017 +0900
@@ -116,7 +116,7 @@
 __code odgCommit3(struct TaskManager* taskManager, struct Context* task) {
     if (__sync_fetch_and_sub(&task->idgCount, 1) == 1) { // atomic decrement idg counter(__sync_fetch_and_sub function return initial value of task->idgCount point)
         taskManager->taskManager = (union Data*)task->taskManager;
-        taskManager->context = task;
+        taskManager->task = task;
         taskManager->next = C_odgCommit1;
         goto meta(context, task->taskManager->spawn);
     }