view example/HelloWorld/ppe/Hello.cc @ 467:44c0bce54dcf

fix all examples. test_render is not working now.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 01 Oct 2009 19:25:25 +0900
parents 58fd16298954
children 60aa3f241b10
line wrap: on
line source

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

/* これは必須 */
SchedDefineTask(Hello);

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

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

    return 0;
}