view example/post_function/ppe/Hello.cc @ 797:1db779ac0268 draft

SchedTask instance variable clean up
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 18 May 2010 17:57:19 +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;
}