Mercurial > hg > GearsTemplate
diff src/parallel_execution/context.c @ 109:059b26a250cc
Change put_queue process
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 02 May 2016 20:02:09 +0900 |
parents | 8987cf13d5bb |
children | e3cba827d489 |
line wrap: on
line diff
--- a/src/parallel_execution/context.c Mon Apr 11 01:45:22 2016 +0900 +++ b/src/parallel_execution/context.c Mon May 02 20:02:09 2016 +0900 @@ -153,7 +153,12 @@ activeQueue->last = 0; activeQueue->count = 0; - context->dataNum = ActiveQueue; + struct Queue* waitQueue = ALLOC_DATA_TYPE(context, WaitQueue, Queue); + waitQueue->first = 0; + waitQueue->last = 0; + waitQueue->count = 0; + + context->dataNum = Queue; context->node_stack = stack_init(sizeof(struct Node*), 100); context->code_stack = stack_init(sizeof(enum Code), 100);