view example/post_function/spe/Hello.cc @ 1467:d585a7614cd5 draft

look like working now.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 15 Jul 2012 17:33:50 +0900
parents 0e91ddaad798
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)
{
    int id = (long)s->get_param(0);

    printf("Hello, World!! post_func output %d\n", id);

    return 0;
}