- removed Scheduler-initiated events

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@604 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
elvez 2006-06-03 15:51:38 +00:00
parent 8062dd95da
commit da39407173
15 changed files with 21 additions and 55 deletions

View file

@ -126,7 +126,7 @@ Scheduler::step_forward() throw(UserInterruptException)
initial->get_item_at(i)->set_state(SchedulableStatus::state_ready);
// Sort the queue
policy.sort_queue(event_schedulable_arrival);
policy.sort_queue();
//restore the old running schedulable
if (policy.is_pre_emptive() == false && running_ptr)
@ -153,14 +153,14 @@ Scheduler::step_forward() throw(UserInterruptException)
running_ptr = NULL;
//IF _ready_queue.size() == 0 sort_queue(...) is called but has no effect!!
policy.sort_queue(event_schedulable_termination);
policy.sort_queue();
}
//*****************
// Check for time slice
//*****************
if (policy.get_time_slice() != numeric_limits<int>::max()) //time-slice
policy.sort_queue(event_end_time_slice);
policy.sort_queue();
//******************
// Create the final list of schedulable