Mercurial > hg > Game > Cerium
view example/get_segment/spe/Hello1.cc @ 437:e924d6cca813 draft
overlay...
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 24 Sep 2009 22:40:58 +0900 |
parents | 19c7c7cb02bf |
children | 13c6740ab15f |
line wrap: on
line source
#include <stdio.h> #include "Hello1.h" #include "Func.h" /* これは必須 */ #if OVLY SchedDefineDynamicTask(Hello1,segment2); #else SchedDefineTask(Hello1); #endif int Hello1::run(SchedTask *smanager, void *rbuf, void *wbuf) { int task_id = get_param(0); printf("[%d] Hello, World Seg 2!!\n", task_id); return 0; }