view example/HelloWorld/ppe/Hello.cc @ 1012:bba03a6843ba

fix HelloWorld
author one@zeus.cr.ie.u-ryukyu.ac.jp
date Mon, 01 Nov 2010 18:27:19 +0900
parents 60aa3f241b10
children
line wrap: on
line source

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

/* これは必須 */
SchedDefineTask1(Hello,hello);

static int
hello(SchedTask *smanager, void *rbuf, void *wbuf)
{
    int task_id = (long)smanager->get_param(0);

    smanager->printf("[%d] Hello, World!!\n", task_id);

    return 0;
}