comparison src/workerRun.cbc @ 1:73127e0ab57c

(none)
author soto@cr.ie.u-ryukyu.ac.jp
date Tue, 08 Sep 2020 18:38:08 +0900
parents
children
comparison
equal deleted inserted replaced
0:b919985837a3 1:73127e0ab57c
1 __code getTaskCPUWorker(struct CPUWorker* cpuWorker, struct Context* task, struct Worker* worker) {
2 if (!task) {
3 goto worker->shutdown(); // end thread
4 }
5 task->worker = worker;
6 enum Code taskCg = task->next;
7 task->next = C_odgCommitCPUWorker; // commit outputDG after task exec
8 goto meta(task, taskCg); // switch task context
9 }