view example/dependency_task/ppe/Print.cc @ 5:8f445f1bfe66 default tip

3d camera
author Daiki KINJYO <e085722@ie.u-ryukyu.ac.jp>
date Mon, 06 Dec 2010 17:20:56 +0900
parents 04e28d8d3c6f
children
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);
    long length = (long)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;
}