Mercurial > hg > Game > Cerium
annotate TaskManager/kernel/ppe/Task.cc @ 961:efee36d2f84c draft
fix QueueInfo
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 04 Aug 2010 23:05:59 +0900 |
parents | 1b225972ae88 |
children | 57317332f6ef |
rev | line source |
---|---|
109 | 1 #include "Task.h" |
736 | 2 #include "Scheduler.h" |
109 | 3 |
687
25afcd4ae380
test code for TaskArray
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
686
diff
changeset
|
4 void |
736 | 5 Task::print(Scheduler *s) |
687
25afcd4ae380
test code for TaskArray
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
686
diff
changeset
|
6 { |
736 | 7 s->printf("task id %d task size = %d param size %d " |
687
25afcd4ae380
test code for TaskArray
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
686
diff
changeset
|
8 "inData size %d " |
697 | 9 "outData size %d\n", command, size(), param_count, inData_count, outData_count |
687
25afcd4ae380
test code for TaskArray
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
686
diff
changeset
|
10 ); |
697 | 11 for(int i=0; i< param_count && i<5; i++) { |
713
97adb3fe85c6
remove SIMPLE_TASK conditional
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
706
diff
changeset
|
12 // large param_count shall be a bug |
736 | 13 s->printf("param %d = 0x%ld\n", i, (long)param(i)); |
687
25afcd4ae380
test code for TaskArray
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
686
diff
changeset
|
14 } |
25afcd4ae380
test code for TaskArray
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
686
diff
changeset
|
15 |
25afcd4ae380
test code for TaskArray
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents:
686
diff
changeset
|
16 } |
685 | 17 |
109 | 18 |
685 | 19 /* end */ |