Mercurial > hg > Members > innparusu > Gears
diff src/parallel_execution/dependency.c @ 116:69fbd905d750
Modify Create_Data
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 12 Jul 2016 16:26:05 +0900 |
parents | 135472238fb7 |
children | c9ab10847fc3 |
line wrap: on
line diff
--- a/src/parallel_execution/dependency.c Tue Jun 28 15:59:24 2016 +0900 +++ b/src/parallel_execution/dependency.c Tue Jul 12 16:26:05 2016 +0900 @@ -59,17 +59,20 @@ &context->data[WaitQueue]->queue); } -__code taskA(struct Context* context) { - printf("TaskA\n"); - goto meta(context, context->next); +__code taskA(struct Context* context, struct Integer* input1, struct Integer* input2) { + allocator(context); + goto meta(context, calcPlus); +} + +__code add(struct Context* context, struct Integer* input1, struct Integer* input2, struct Integer* output) { + output->value = input1->value + input2->value; } __code taskB(struct Context* context) { - printf("TaskB\n"); + allocator(context); goto meta(context, context->next); } -__code taskC(struct Context* context) { - printf("TaskC\n"); - goto meta(context, context->next); +__code mult(struct Context* context, struct Integer* input1, struct Integer* input2, struct Integer* output) { + output->value = input1->value * input2->value; }