Mercurial > hg > Papers > 2021 > soto-prosym
annotate Paper/src/workerRun.cbc @ 14:393c839f987b default tip
DONE
author | soto <soto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 08 Jan 2022 12:41:39 +0900 |
parents | c59202657321 |
children |
rev | line source |
---|---|
0 | 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 } |