- Completed policy-related error handling code

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@839 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
elvez 2006-08-10 22:59:00 +00:00
parent 48fc2f5a00
commit 17ca8156d9
7 changed files with 30 additions and 14 deletions

View file

@ -23,6 +23,7 @@
#include "cpu_policy.hh"
#include "scheduler.hh"
#include "user_interrupt_exception.hh"
#include "malformed_policy_exception.hh"
// Do not include full template definition in the header file
#include "singleton.tcc"
@ -497,7 +498,7 @@ Scheduler::get_policy()
bool
Scheduler::step_forward(History& history, CPUPolicy& cpu_policy) throw(UserInterruptException)
Scheduler::step_forward(History& history, CPUPolicy& cpu_policy) throw(UserInterruptException, MalformedPolicyException)
{
// This very method should be exclusive: no concurrent behaviour, from when we
// store a readyqueue and policy pointer for the user-policy to retrieve, to when
@ -725,7 +726,7 @@ Scheduler::step_forward(History& history, CPUPolicy& cpu_policy) throw(UserInter
} // end of try
catch (UserInterruptException& e)
catch (const CPUPolicyException& e)
{
// Reset values that the policy doesn't need anymore
_policy = NULL;