Mercurial > hg > Game > Cerium
view example/word_count/ppe/task_init.cc @ 575:341f1f881a9b draft
Linda API worked. (slightly unreliable)
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 23 Oct 2009 15:53:24 +0900 |
parents | cb06748ba6cf |
children | 852ed17d8af1 |
line wrap: on
line source
#include "Func.h" #include "Scheduler.h" /* 必ずこの位置に書いて */ SchedExternTask(Print); SchedExternTask(Exec); SchedExternTask(RunFinish); /** * この関数は ../spe/spe-main と違って * 自分で呼び出せばいい関数なので * 好きな関数名でおk (SchedRegisterTask は必須) */ void task_init(void) { SchedRegisterTask(TASK_PRINT, Print); SchedRegisterTask(TASK_EXEC, Exec); SchedRegisterTask(RUN_FINISH, RunFinish); }