comparison Scheduler/scheduler.c @ 33:3946f8d26710 draft default tip

add benchmarck/binary-trees
author Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp>
date Tue, 09 Apr 2013 16:41:30 +0900
parents e3b6e2eef223
children
comparison
equal deleted inserted replaced
32:e3b6e2eef223 33:3946f8d26710
85 task_list[i].run = null_run; 85 task_list[i].run = null_run;
86 task_list[i].load = null_load; 86 task_list[i].load = null_load;
87 task_list[i].wait = null_load; 87 task_list[i].wait = null_load;
88 } 88 }
89 89
90 scheduler->set_manager(m); 90 scheduler->set_manager(m,scheduler);
91 91
92 for (i=0; i<MAX_GLOBAL_AREA; i++) { 92 for (i=0; i<MAX_GLOBAL_AREA; i++) {
93 scheduler->global_list[i] = NULL; 93 scheduler->global_list[i] = NULL;
94 } 94 }
95 95
96 for (i=0; i<MAX_MAINMEM_AREA; i++) { 96 for (i=0; i<MAX_MAINMEM_AREA; i++) {
97 scheduler->main_mem_list[i] = (memaddr)NULL; 97 scheduler->main_mem_list[i] = (memaddr)NULL;
98 } 98 }
99
99 100
100 } 101 }
101 102
102 void set_manager(task_manager_impl *impl, main_scheduler *scheduler) 103 void set_manager(task_manager_impl *impl, main_scheduler *scheduler)
103 { 104 {