Mercurial > hg > Gears > GearsAgda
diff src/parallel_execution/dependency.c @ 148:473b7d990a1f
fix data gears type enum
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 10 Nov 2016 12:07:53 +0900 |
parents | d05b9937aa95 |
children | ea7b11f3e717 |
line wrap: on
line diff
--- a/src/parallel_execution/dependency.c Thu Nov 10 10:35:48 2016 +0900 +++ b/src/parallel_execution/dependency.c Thu Nov 10 12:07:53 2016 +0900 @@ -3,7 +3,7 @@ #include "origin_cs.h" __code meta_waitFor(struct Context* context, struct Queue* queue, enum Code next) { - context->data[Queue] = (union Data *)queue; + context->data[D_Queue] = (union Data *)queue; goto (context->code[next])(context); } @@ -29,7 +29,7 @@ //} __code meta_spawnTask(struct Context* context, struct Queue* queue, enum Code next) { - context->data[Queue] = (union Data *)queue; + context->data[D_Queue] = (union Data *)queue; goto (context->code[next])(context); } @@ -50,9 +50,9 @@ __code spawnTask_stub(struct Context* context) { goto spawnTask(context, &context->data[context->dataNum-2]->task, - &context->data[Element]->element, - &context->data[ActiveQueue]->queue, - &context->data[WaitQueue]->queue); + &context->data[D_Element]->element, + &context->data[D_ActiveQueue]->queue, + &context->data[D_WaitQueue]->queue); } __code taskA(struct Context* context) {