Mercurial > hg > Members > innparusu > Gears
diff src/parallel_execution/dependency.c @ 123:4ff6f093b695
Fix segmentation fault
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 13 Sep 2016 11:54:25 +0900 |
parents | a086857e1812 |
children | acf0453b1c7a |
line wrap: on
line diff
--- a/src/parallel_execution/dependency.c Thu Aug 25 03:23:29 2016 +0900 +++ b/src/parallel_execution/dependency.c Tue Sep 13 11:54:25 2016 +0900 @@ -15,7 +15,10 @@ } __code waitFor_stub(struct Context* context) { - // think + goto waitFor(context, + &context->data[context->dataNum-1]->task, + &context->data[Element]->element, + &context->data[Node]->node.value); } __code meta_spawnTask(struct Context* context, struct Queue* queue, enum Code next) { @@ -80,6 +83,7 @@ __code add(struct Context* context, struct Integer* input1, struct Integer* input2, struct Integer* output) { output->value = input1->value + input2->value; + printf("%d + %d = %d\n", input1->value, input2->value, output->value); goto meta(context, context->next); } @@ -92,6 +96,7 @@ __code mult(struct Context* context, struct Integer* input1, struct Integer* input2, struct Integer* output) { output->value = input1->value * input2->value; + printf("%d * %d = %d\n", input1->value, input2->value, output->value); goto meta(context, context->next); }