comparison src/parallel_execution/main.c @ 102:64c98838a291

remove stack StartTime&EndTime
author ikkun
date Wed, 02 Mar 2016 20:51:33 +0900
parents 8987cf13d5bb
children 059b26a250cc
comparison
equal deleted inserted replaced
101:8987cf13d5bb 102:64c98838a291
36 /* puts("tree"); */ 36 /* puts("tree"); */
37 /* print_tree(context->data[Tree]->tree.root); */ 37 /* print_tree(context->data[Tree]->tree.root); */
38 /* puts("result"); */ 38 /* puts("result"); */
39 39
40 context->next = CreateWorker; 40 context->next = CreateWorker;
41 stack_push(context->code_stack, &context->next); 41
42 42 struct Time *t = &context->data[Time]->time;
43 t->next = CreateWorker;
43 goto meta(context, StartTime); 44 goto meta(context, StartTime);
44 } 45 }
45 46
46 __code code1_stub(struct Context* context) { 47 __code code1_stub(struct Context* context) {
47 goto code1(context); 48 goto code1(context);
231 goto meta(context, TaskManager); 232 goto meta(context, TaskManager);
232 } 233 }
233 234
234 loopCounter->i = 0; 235 loopCounter->i = 0;
235 236
236 context->next = Code2; 237 struct Time *t = &context->data[Time]->time;
237 stack_push(context->code_stack, &context->next); 238 t->next = Code2;
238
239 goto meta(context, EndTime); 239 goto meta(context, EndTime);
240 } 240 }
241 241
242 __code taskManager_stub(struct Context* context) { 242 __code taskManager_stub(struct Context* context) {
243 goto taskManager(context, &context->data[LoopCounter]->loopCounter, &context->data[Worker]->worker); 243 goto taskManager(context, &context->data[LoopCounter]->loopCounter, &context->data[Worker]->worker);