view example/get_segment/spe/Hello.cc @ 439:95c0457a7d31

still overlay...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Fri, 25 Sep 2009 00:46:50 +0900
parents fd44dbd049aa
children 7bae2117f239
line wrap: on
line source

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

/* これは必須 */
SchedDefineDynamicTask(Hello,segment1);

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

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

    return 0;
}