Mercurial > hg > GearsTemplate
comparison src/parallel_execution/context.h @ 218:d8a59b727f65
Fix spawnTaskManager
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 09 Jan 2017 05:23:20 +0900 |
parents | c34e6aa10967 |
children | 77faa28128b4 |
comparison
equal
deleted
inserted
replaced
217:c34e6aa10967 | 218:d8a59b727f65 |
---|---|
72 struct LoopCounter { | 72 struct LoopCounter { |
73 int i; | 73 int i; |
74 struct Tree* tree; | 74 struct Tree* tree; |
75 } LoopCounter; | 75 } LoopCounter; |
76 struct TaskManager { | 76 struct TaskManager { |
77 union Data* taskManager; | |
77 int numWorker; | 78 int numWorker; |
78 enum Code spawn; | 79 enum Code spawn; |
79 enum Code shutdown; | 80 enum Code shutdown; |
80 enum Code deadLockDetected; | 81 enum Code deadLockDetected; |
81 enum Code next; | 82 enum Code next; |
83 struct Task* task; | |
82 struct Worker* workers; | 84 struct Worker* workers; |
83 } TaskManager; | 85 } TaskManager; |
84 struct TaskManagerImpl { | 86 struct TaskManagerImpl { |
85 struct Queue* activeQueue; | 87 struct Queue* activeQueue; |
86 struct Queue* taskQueue; | 88 struct Queue* taskQueue; |