view example/dependency_task/ppe/Print.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 <string.h>
#include "Print.h"
#include "Func.h"

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

static int
run(SchedTask *s, void *rbuf, void *wbuf)
{
    int *idata = (int*)s->get_input(rbuf, 0);
    int length = s->get_param(0);

    s->printf("[TASK_PRINT]\n");
    for (int i = 0; i < length; i++) {
	s->printf("%2d ", idata[i]);
    }
    s->printf("\n");

    return 0;
}