- Implement first draft of quicksort in Python

- Extend test to have a set of processes (now lacks
significative output)
- Extend FCFS policy to do something useful
- FIXME : segfaults on sortQueue()
- FIXME : needs implementation for SchedulableQueue.swap()


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@389 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-02-22 22:57:32 +00:00
parent 7110279f53
commit 73a3e72118
6 changed files with 102 additions and 43 deletions

View file

@ -50,7 +50,7 @@ Policy&
PythonPolicyManager::get_policy()
{
// FIXME : assumes that _python_policy is always != NULL!
return *_python_policy;
return *_python_policy;
}
void
@ -76,7 +76,5 @@ PythonPolicyManager::init()
// FIXME : Hardcoded policy name
char* policy_name = "fcfs";
PythonPolicy policy(policy_name);
policy.configure();
std::cout << policy.get_time_slice() << std::endl;
_python_policy = std::auto_ptr<PythonPolicy>(new PythonPolicy(policy_name));
}