annotate paper/src/workerRun.cbc @ 2:c7acb9211784

add code, figure. and paper fix content
author ryokka
date Mon, 27 Jan 2020 20:41:36 +0900
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
c7acb9211784 add code, figure. and paper fix content
ryokka
parents:
diff changeset
1 __code getTaskCPUWorker(struct CPUWorker* cpuWorker, struct Context* task, struct Worker* worker) {
c7acb9211784 add code, figure. and paper fix content
ryokka
parents:
diff changeset
2 if (!task) {
c7acb9211784 add code, figure. and paper fix content
ryokka
parents:
diff changeset
3 goto worker->shutdown(); // end thread
c7acb9211784 add code, figure. and paper fix content
ryokka
parents:
diff changeset
4 }
c7acb9211784 add code, figure. and paper fix content
ryokka
parents:
diff changeset
5 task->worker = worker;
c7acb9211784 add code, figure. and paper fix content
ryokka
parents:
diff changeset
6 enum Code taskCg = task->next;
c7acb9211784 add code, figure. and paper fix content
ryokka
parents:
diff changeset
7 task->next = C_odgCommitCPUWorker; // commit outputDG after task exec
c7acb9211784 add code, figure. and paper fix content
ryokka
parents:
diff changeset
8 goto meta(task, taskCg); // switch task context
c7acb9211784 add code, figure. and paper fix content
ryokka
parents:
diff changeset
9 }