view ppe/PadFree.cc @ 26:6bea374ee604

global alloc test.
author koba <koba@cr.ie.u-ryukyu.ac.jp>
date Fri, 10 Dec 2010 02:20:37 +0900
parents
children 34fde39c0a31
line wrap: on
line source

#include <stdio.h>
#include <string.h>
#include "PadFree.h"
#include "Func.h"

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

static int
run(SchedTask *s, void *rbuf, void *wbuf)
{

    int pad_id = (int)s->get_param(0);

    s->global_free(pad_id);

    return 0;
}