Mercurial > hg > Papers > 2024 > matac-master
view Paper/src/missingParGoto.cbc @ 46:9baf70df56fa
copy algo
author | matac42 <matac@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 29 Jan 2024 13:41:22 +0900 |
parents | c8151a82f313 |
children |
line wrap: on
line source
__code createTask1(struct Context *context,struct TaskManager* taskManager) { struct CountUp* countUp = createCountUpImpl(context); struct CountUp* countUp2 = createCountUpImpl(context); struct Element* element; context->task = NEW(struct Context); initContext(context->task); context->task->next = countUp->eNum; context->task->idgCount = 1; context->task->idg = context->task->dataNum; context->task->maxIdg = context->task->idg + 1; context->task->odg = context->task->maxIdg; context->task->maxOdg = context->task->odg + 0; ## GET_META(0)->wait = createSynchronizedQueue(context); //GET_META(countUp)->wait = createSynchronizedQueue(context); Gearef(context->task, CountUp)->countUp = (union Data*) countUp; Gearef(context->task, CountUp)->num = (union Data*) 0; Gearef(context->task, CountUp)->next = C_test; element = &ALLOCATE(context, Element)->Element; element->data = (union Data*)context->task; element->next = context->taskList; context->taskList = element; Gearef(context, TaskManager)->taskList = context->taskList; Gearef(context, TaskManager)->next1 = C_code2; goto parGotoMeta(context, C_code2); }