annotate include/TaskManager/Task.h @ 357:6602b9ba4bfd draft

fix spe/DrawSpan.{cpp, h} spe/DrawSpanRenew.cpp
author root@henri.cr.ie.u-ryukyu.ac.jp
date Fri, 17 Jul 2009 17:13:17 +0900
parents 3fc86ddf5d1c
children 73630476453a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
276
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 #ifndef INCLUDED_TASK
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 #define INCLUDED_TASK
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3
307
3fc86ddf5d1c clean up include
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 276
diff changeset
4 #include "base.h"
3fc86ddf5d1c clean up include
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 276
diff changeset
5 #include "types.h"
3fc86ddf5d1c clean up include
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 276
diff changeset
6 #include "ListData.h"
276
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 #define MAX_PARAMS 8
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 class Task {
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 public: // variables
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 BASE_NEW_DELETE(Task);
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 int command; // 4 byte
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 ListDataPtr inData; // 4 byte
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 ListDataPtr outData; // 4 byte
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 uint32 self; // 4 byte
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
19
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 int param_size; // 4 byte
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
21 int param[MAX_PARAMS]; // 4*MAX_PARAMS byte
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
22
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
23 public: // functions
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
24 int add_inData_t(unsigned int addr, int size);
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
25 int add_outData_t(unsigned int addr, int size);
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 int add_data(ListDataPtr list, unsigned int addr, int size);
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
27 int add_param(int param);
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
28
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
29 #define add_inData(addr, size) \
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 add_inData_t((unsigned int)(addr), (size));
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
31 #define add_outData(addr, size) \
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
32 add_outData_t((unsigned int)(addr), (size));
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
33 };
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
34
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
35 typedef Task* TaskPtr;
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
36
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
diff changeset
37 #endif