view example/post_function/ppe/Hello.cc @ 1786:ba6ffc679a8f draft

minor fix
author Masataka Kohagura <e085726@ie.u-ryukyu.ac.jp>
date Sat, 30 Nov 2013 21:06:44 +0900
parents 94d82f2c842f
children
line wrap: on
line source

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

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

static int
run(SchedTask *s, void *rbuf, void *wbuf)
{
    long id = (long)s->get_param(0);

    s->printf("Hello, World!! post_func output %ld\n", id);

    return 0;
}