Mercurial > hg > Members > tkaito > task_dandy
comparison 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 |
comparison
equal
deleted
inserted
replaced
23:3fb8a6a34e24 | 26:6bea374ee604 |
---|---|
1 #include <stdio.h> | |
2 #include <string.h> | |
3 #include "PadFree.h" | |
4 #include "Func.h" | |
5 | |
6 /* これは必須 */ | |
7 SchedDefineTask(PadFree); | |
8 | |
9 static int | |
10 run(SchedTask *s, void *rbuf, void *wbuf) | |
11 { | |
12 | |
13 int pad_id = (int)s->get_param(0); | |
14 | |
15 s->global_free(pad_id); | |
16 | |
17 return 0; | |
18 } | |
19 |