Mercurial > hg > Papers > 2021 > soto-prosym
view 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 |
line wrap: on
line source
__code getTaskCPUWorker(struct CPUWorker* cpuWorker, struct Context* task, struct Worker* worker) { if (!task) { goto worker->shutdown(); // end thread } task->worker = worker; enum Code taskCg = task->next; task->next = C_odgCommitCPUWorker; // commit outputDG after task exec goto meta(task, taskCg); // switch task context }