annotate ppe/PadFree.cc @ 27:34fde39c0a31

commit test.
author koba <koba@cr.ie.u-ryukyu.ac.jp>
date Fri, 10 Dec 2010 02:57:29 +0900
parents aa37f220b7a8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
25
aa37f220b7a8 add new files, not working.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 #include <stdio.h>
aa37f220b7a8 add new files, not working.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 #include <string.h>
aa37f220b7a8 add new files, not working.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 #include "PadFree.h"
aa37f220b7a8 add new files, not working.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 #include "Func.h"
aa37f220b7a8 add new files, not working.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
5
aa37f220b7a8 add new files, not working.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 /* これは必須 */
aa37f220b7a8 add new files, not working.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 SchedDefineTask(PadFree);
aa37f220b7a8 add new files, not working.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
8
aa37f220b7a8 add new files, not working.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 static int
aa37f220b7a8 add new files, not working.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 run(SchedTask *s, void *rbuf, void *wbuf)
aa37f220b7a8 add new files, not working.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 {
aa37f220b7a8 add new files, not working.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
12
aa37f220b7a8 add new files, not working.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 int pad_id = (int)s->get_param(0);
27
34fde39c0a31 commit test.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 25
diff changeset
14
25
aa37f220b7a8 add new files, not working.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 s->global_free(pad_id);
27
34fde39c0a31 commit test.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents: 25
diff changeset
16
25
aa37f220b7a8 add new files, not working.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 return 0;
aa37f220b7a8 add new files, not working.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 }
aa37f220b7a8 add new files, not working.
koba <koba@cr.ie.u-ryukyu.ac.jp>
parents:
diff changeset
19