507
|
1 #include <stdio.h>
|
|
2 #include "TaskManager.h"
|
|
3 #include "Func.h"
|
|
4
|
|
5 void
|
|
6 show_time()
|
|
7 {
|
|
8 /*
|
|
9 HTaskPtr show;
|
|
10 HTaskPtr pre_show;
|
|
11 */
|
|
12 /*
|
|
13 show = manager->create_task(SHOW_TIME);
|
|
14 show->set_cpu(SPE_0);
|
|
15 show->spawn();
|
|
16 printf("testですよ\n");
|
|
17 */
|
|
18
|
|
19 /*
|
|
20 pre_show = manager->create_task(SHOW_TIME);
|
|
21 pre_show->set_cpu((CPU_TYPE)((int)SPE_0));
|
|
22 pre_show->spawn();
|
|
23
|
|
24 for (int i = 1; i < 6; i++) {
|
|
25 show = manager->create_task(SHOW_TIME);
|
|
26 show->set_cpu((CPU_TYPE)((int)SPE_0 + i));
|
|
27 show->wait_for(pre_show);
|
|
28 show->spawn();
|
|
29 pre_show = show;
|
|
30 }
|
|
31 */
|
|
32 }
|