view example/HelloWorld/spe/Hello.cc @ 581:58cdb81f7f96

fix
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sat, 24 Oct 2009 17:42:42 +0900
parents 44c0bce54dcf
children ab866bc8a624
line wrap: on
line source

#include <stdio.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;
}