Mercurial > hg > Papers > 2017 > ikkun-sigos
view paper/src/setting_task.c @ 35:7c5d27175aa4 default tip
fix
author | ikkun |
---|---|
date | Tue, 16 May 2017 16:19:47 +0900 |
parents | 8e5011d1947d |
children |
line wrap: on
line source
__code createTask(TaskManager* taskManager, Context* task, Integer *integer1, Integer *integer2, Integer *output) { task->next = C_add; // set Code Gear task->idgCount = 2; // set Input Data Gear Counter task->data[task->idg] = (union Data*)integer1; // set Input Data Gear reference task->data[task->idg+1] = (union Data*)integer2; task->maxIdg = task->idg + 2; task->odg = task->maxIdg; // Output Data Gear index task->data[task->odg] = (union Data*)output; // set Output Data Gear reference task->maxOdg = task->odg + 1; taskManager->next = C_createTask1; goto meta(context, taskManager->taskManager->TaskManager.spawn); // spawn task } // code gear __code add(Integer *integer1, Integer *integer2, Integer *output) { .... }