view example/get_segment/spe/Hello1.cc @ 460:433892ba596b draft

fix Scheduler.h
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 29 Sep 2009 11:51:25 +0900
parents 54c49df8dcda
children ca987c0beb11
line wrap: on
line source

#include <stdio.h>
#include "Hello1.h"
#include "Func.h"

/* これは必須 */
SchedDefineDynamicTask(Hello1,1);

int
Hello1::run(SchedTask *smanager, void *rbuf, void *wbuf)
{
    int task_id = get_param(0);

    fprintf(stderr,"[%d] Hello, World Seg 2!!\n", task_id);
    fprintf(stderr,"0x%0x\n", (unsigned int)&createTask_Hello1);

    return 0;
}