comparison TaskManager/kernel/schedule/Scheduler.cc @ 684:458a1ad91427

Task Array generation worked.
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Sun, 06 Dec 2009 23:03:28 +0900
parents 7405d92733a8
children b386522827ae
comparison
equal deleted inserted replaced
683:9a6cb2439593 684:458a1ad91427
23 { 23 {
24 printf("Calling Undefined Task\n"); 24 printf("Calling Undefined Task\n");
25 return 0; 25 return 0;
26 } 26 }
27 27
28 static void null_loader(Scheduler *m, int task_id);
29
28 /*! @brief speTaskの入出力のパイプラインバッファを確保する 30 /*! @brief speTaskの入出力のパイプラインバッファを確保する
29 */ 31 */
30 32
31 void 33 void
32 Scheduler::init(TaskManagerImpl *m) 34 Scheduler::init(TaskManagerImpl *m)
33 { 35 {
34 hash = 0; 36 hash = 0;
35 37
36 for (int i = 0; i< MAX_TASK_OBJECT; i++) { 38 for (int i = 0; i< MAX_TASK_OBJECT; i++) {
37 task_list[0].run = null_run; 39 task_list[i].run = null_run;
40 task_list[i].load = null_loader;
41 task_list[i].wait = null_loader;
38 } 42 }
39 43
40 set_manager(m); 44 set_manager(m);
41 init_impl(); 45 init_impl();
42 46