annotate TaskManager/kernel/ppe/HTask.cc @ 1551:57317332f6ef draft

create fft example
author Yuhi TOMARI <yuhi@cr.ie.u-ryukyu.ac.jp>
date Sun, 17 Feb 2013 12:59:12 +0900
parents 163220e54cc0
children 806b4658ced6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
1 #include "HTask.h"
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
2 #include "ListData.h"
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
3 #include "TaskManagerImpl.h"
704
ec6c897448ca Compatibility mode works.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 700
diff changeset
4 #include "strings.h"
1423
515a0f15b5d2 add to log taskdependency
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents: 1191
diff changeset
5 #include "rdtsc.h"
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
6
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
7
293
da8edd0735f2 add wait_for document
e065746@localhost.localdomain
parents: 109
diff changeset
8 /*!
297
54725883131b start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 293
diff changeset
9 manager->set_task_depend(task1, task2); // task2 は task1 の終了を待つ
293
da8edd0735f2 add wait_for document
e065746@localhost.localdomain
parents: 109
diff changeset
10
297
54725883131b start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 293
diff changeset
11 ってやるより
293
da8edd0735f2 add wait_for document
e065746@localhost.localdomain
parents: 109
diff changeset
12
da8edd0735f2 add wait_for document
e065746@localhost.localdomain
parents: 109
diff changeset
13 task2->set_depend(task1);
da8edd0735f2 add wait_for document
e065746@localhost.localdomain
parents: 109
diff changeset
14
297
54725883131b start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 293
diff changeset
15 ってやったほうがわかりやすいよねー的な話し合いで
54725883131b start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 293
diff changeset
16 下のようなAPIを作りました
293
da8edd0735f2 add wait_for document
e065746@localhost.localdomain
parents: 109
diff changeset
17 */
da8edd0735f2 add wait_for document
e065746@localhost.localdomain
parents: 109
diff changeset
18
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
19 void
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
20 HTask::spawn(void)
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
21 {
1479
163220e54cc0 remove hard code for TaskLog
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents: 1474
diff changeset
22 if (export_task_log)
163220e54cc0 remove hard code for TaskLog
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents: 1474
diff changeset
23 tasklog->create_time = rdtsc();
163220e54cc0 remove hard code for TaskLog
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents: 1474
diff changeset
24
1462
8cf62aea798f HTask/TaskList fix (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1427
diff changeset
25 TaskList *tl = (TaskList*)rbuf;
8cf62aea798f HTask/TaskList fix (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1427
diff changeset
26 tl->self = this;
1466
cb57420a8219 TaskList on going...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1464
diff changeset
27 tl->set_last(last);
1423
515a0f15b5d2 add to log taskdependency
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents: 1191
diff changeset
28 mimpl->spawn_task(this);
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
29 }
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
30
293
da8edd0735f2 add wait_for document
e065746@localhost.localdomain
parents: 109
diff changeset
31 /*!
297
54725883131b start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 293
diff changeset
32 @brief この Task が待ち合わせする Task を指定する
54725883131b start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 293
diff changeset
33 @param[in] master この Task が終了待ち合わせをする相手の Task
293
da8edd0735f2 add wait_for document
e065746@localhost.localdomain
parents: 109
diff changeset
34
297
54725883131b start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 293
diff changeset
35 繰り返し使用する事で複数の Task を待ち合わせする事ができる。
293
da8edd0735f2 add wait_for document
e065746@localhost.localdomain
parents: 109
diff changeset
36
297
54725883131b start task config
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 293
diff changeset
37 wait_for している Task の入力バッファにこの Task から書き込みできる機能があると良い
293
da8edd0735f2 add wait_for document
e065746@localhost.localdomain
parents: 109
diff changeset
38 */
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
39 void
293
da8edd0735f2 add wait_for document
e065746@localhost.localdomain
parents: 109
diff changeset
40 HTask::wait_for(HTaskPtr master)
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
41 {
1479
163220e54cc0 remove hard code for TaskLog
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents: 1474
diff changeset
42 if (export_task_log) {
163220e54cc0 remove hard code for TaskLog
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents: 1474
diff changeset
43 waitTask *wait_task = new waitTask;
163220e54cc0 remove hard code for TaskLog
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents: 1474
diff changeset
44 wait_task->task_id = master->tasklog->mtask_id;
163220e54cc0 remove hard code for TaskLog
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents: 1474
diff changeset
45 wait_task->cmd = master->tasklog->cmd;
163220e54cc0 remove hard code for TaskLog
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents: 1474
diff changeset
46 tasklog->wait_for_list.addLast(wait_task);
163220e54cc0 remove hard code for TaskLog
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents: 1474
diff changeset
47 }
1423
515a0f15b5d2 add to log taskdependency
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents: 1191
diff changeset
48
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
49 mimpl->set_task_depend(master, this);
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
50 }
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
51
814
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
52 /**
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
53 * タスクが実行する CPU を選択する
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
54 *
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
55 * 現在は CPU_PPE, CPU_SPE, SPE_ANY, SPE_0, SPE_1, ..., SPE_5
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
56 * types.h に書いてます。
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
57 *
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
58 * mimpl によって使えるCPUが異なるので、mimpl に任せる必要がある
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
59 */
547
e5431e658038 continue..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 546
diff changeset
60 void
e5431e658038 continue..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 546
diff changeset
61 HTask::set_cpu(CPU_TYPE type)
e5431e658038 continue..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 546
diff changeset
62 {
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
63 mimpl->set_task_cpu(this, type);
547
e5431e658038 continue..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 546
diff changeset
64 }
e5431e658038 continue..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 546
diff changeset
65
814
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
66 /*!
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
67 @brief このTaskが終了した時に実行する関数
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
68 @param arg1, arg2 の二つの引数を持つ (Task に合わせてある)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
69 */
547
e5431e658038 continue..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 546
diff changeset
70 void
550
a9f27334963a old ball_bound fix...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 539
diff changeset
71 HTask::set_post(PostFunction func,void *arg1, void *arg2)
547
e5431e658038 continue..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 546
diff changeset
72 {
109
028ffc9c0375 Cerium cvs version
gongo@gendarme.local
parents:
diff changeset
73 this->post_func = func;
550
a9f27334963a old ball_bound fix...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 539
diff changeset
74 this->post_arg1 = arg1;
a9f27334963a old ball_bound fix...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 539
diff changeset
75 this->post_arg2 = arg2;
547
e5431e658038 continue..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 546
diff changeset
76 }
e5431e658038 continue..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 546
diff changeset
77
687
25afcd4ae380 test code for TaskArray
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 567
diff changeset
78
814
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
79 /*!
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
80 @brief まとまって実行されるTask である Task Array の作成
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
81 @param id Task ID
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
82 @param num_task 実行する Task の数
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
83 @param num_param 一つのTaskがset_paramする数
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
84 @param num_inData 一つのTaskが読み込む Data の数、set_inData の数
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
85 @param num_outData 一つのTaskが書き出す Data の数、set_outData の数
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
86 @return Task Array へのポインタ
1432
b77f32eb137c make available
Daichi TOMA <toma@cr.ie.u-ryukyu.ac.jp>
parents: 1429
diff changeset
87 */
1468
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1467 1432
diff changeset
88
687
25afcd4ae380 test code for TaskArray
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 567
diff changeset
89 Task *
700
ef08dd70eafb fix fix ...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 697
diff changeset
90 HTask::create_task_array(int id, int num_task, int num_param, int num_inData, int num_outData)
687
25afcd4ae380 test code for TaskArray
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 567
diff changeset
91 {
1427
db5c022d871c task array uses TaskList. (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1425
diff changeset
92 r_size = 0;
db5c022d871c task array uses TaskList. (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1425
diff changeset
93 TaskListPtr tl = mimpl->createTaskList();
1462
8cf62aea798f HTask/TaskList fix (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1427
diff changeset
94 tl->self = 0;
1427
db5c022d871c task array uses TaskList. (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1425
diff changeset
95 rbuf = (memaddr)tl;
1462
8cf62aea798f HTask/TaskList fix (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1427
diff changeset
96 bzero(tl->tasks,sizeof(Task)*TASK_MAX_SIZE);
1427
db5c022d871c task array uses TaskList. (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1425
diff changeset
97 Task *task = tl->tasks;
1474
b158873485f6 fix simple task
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1468
diff changeset
98 task->init(id, num_param,num_inData,num_outData); // next_task_array が呼ばれれば、これは不要
b158873485f6 fix simple task
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1468
diff changeset
99 last = task->next(); //
700
ef08dd70eafb fix fix ...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 697
diff changeset
100 return task; // first task
ef08dd70eafb fix fix ...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 697
diff changeset
101 }
689
ecf63089f5bb Task Array generation worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 688
diff changeset
102
ecf63089f5bb Task Array generation worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 688
diff changeset
103
814
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
104 /*!
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
105 @brief Task Array の次のTask
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
106 @param t 今のTaskのポインタ
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
107 0 の場合は最初のTask
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
108 @return 次のTaskへのポインタ
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
109 */
700
ef08dd70eafb fix fix ...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 697
diff changeset
110 Task *
ef08dd70eafb fix fix ...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 697
diff changeset
111 HTask::next_task_array(int id, Task *t)
ef08dd70eafb fix fix ...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 697
diff changeset
112 {
1462
8cf62aea798f HTask/TaskList fix (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1427
diff changeset
113 TaskPtr t1 = t;
700
ef08dd70eafb fix fix ...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 697
diff changeset
114 if (t==0) {
1462
8cf62aea798f HTask/TaskList fix (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1427
diff changeset
115 TaskList *tl = (TaskList*)rbuf;
8cf62aea798f HTask/TaskList fix (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1427
diff changeset
116 t1 = tl->tasks;
700
ef08dd70eafb fix fix ...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 697
diff changeset
117 }
1462
8cf62aea798f HTask/TaskList fix (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1427
diff changeset
118 return next_task_array(id,t,t1->param_count,t1->inData_count,t1->outData_count);
687
25afcd4ae380 test code for TaskArray
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 567
diff changeset
119 }
25afcd4ae380 test code for TaskArray
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 567
diff changeset
120
814
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
121 /*!
1425
8bd889db45a1 add API
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1424
diff changeset
122 @brief Task Array の次のTask
8bd889db45a1 add API
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1424
diff changeset
123 @param t 今のTaskのポインタ
8bd889db45a1 add API
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1424
diff changeset
124 0 の場合は最初のTask
8bd889db45a1 add API
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1424
diff changeset
125 @return 次のTaskへのポインタ
8bd889db45a1 add API
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1424
diff changeset
126 */
8bd889db45a1 add API
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1424
diff changeset
127 Task *
8bd889db45a1 add API
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1424
diff changeset
128 HTask::next_task_array(int id, Task *t, int param_count, int inData_count, int outData_count)
8bd889db45a1 add API
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1424
diff changeset
129 {
1462
8cf62aea798f HTask/TaskList fix (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1427
diff changeset
130 TaskList *tl = (TaskList*)rbuf;
1425
8bd889db45a1 add API
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1424
diff changeset
131 if (t==0) {
1474
b158873485f6 fix simple task
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1468
diff changeset
132 TaskPtr task = tl->tasks;
b158873485f6 fix simple task
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1468
diff changeset
133 task->init(id, param_count, inData_count, outData_count);
b158873485f6 fix simple task
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1468
diff changeset
134 last = task->next();
b158873485f6 fix simple task
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1468
diff changeset
135 return task;
1425
8bd889db45a1 add API
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1424
diff changeset
136 }
8bd889db45a1 add API
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1424
diff changeset
137 Task *next = t->next();
1462
8cf62aea798f HTask/TaskList fix (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1427
diff changeset
138 if (next >= tl->last()) {
1466
cb57420a8219 TaskList on going...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1464
diff changeset
139 tl->set_last(t);
1462
8cf62aea798f HTask/TaskList fix (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1427
diff changeset
140 TaskListPtr nextTaskList = mimpl->createTaskList();
8cf62aea798f HTask/TaskList fix (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1427
diff changeset
141 nextTaskList->prev = tl;
8cf62aea798f HTask/TaskList fix (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1427
diff changeset
142 tl->next = nextTaskList;
8cf62aea798f HTask/TaskList fix (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1427
diff changeset
143 tl = nextTaskList;
8cf62aea798f HTask/TaskList fix (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1427
diff changeset
144 next = tl->tasks;
8cf62aea798f HTask/TaskList fix (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1427
diff changeset
145 tl->self = 0;
8cf62aea798f HTask/TaskList fix (on going)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1427
diff changeset
146 rbuf = (memaddr)tl;
1464
3f2230d79eba TaskList no compile errors
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1463
diff changeset
147 }
1425
8bd889db45a1 add API
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1424
diff changeset
148 next->init(id, param_count, inData_count, outData_count);
1474
b158873485f6 fix simple task
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1468
diff changeset
149 last = next->next();
1425
8bd889db45a1 add API
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1424
diff changeset
150 return next;
8bd889db45a1 add API
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1424
diff changeset
151 }
8bd889db45a1 add API
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1424
diff changeset
152
8bd889db45a1 add API
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 1424
diff changeset
153 /*!
814
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
154 @brief Task Array の中のすべてのTaskが書き込まれたかどうかをチェックする
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
155 TaskArray 自体の spawn() は別に必要
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
156 @param last 今のTaskのポインタ (最後である必要がある)
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 736
diff changeset
157 */
689
ecf63089f5bb Task Array generation worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 688
diff changeset
158 void
700
ef08dd70eafb fix fix ...
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 697
diff changeset
159 HTask::spawn_task_array(Task * last)
689
ecf63089f5bb Task Array generation worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 688
diff changeset
160 {
ecf63089f5bb Task Array generation worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 688
diff changeset
161 }
ecf63089f5bb Task Array generation worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 688
diff changeset
162
ecf63089f5bb Task Array generation worked.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 688
diff changeset
163
547
e5431e658038 continue..
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 546
diff changeset
164 /* end */