- Fix test to initialize a set of processes and run a simulation

- The test needs to be linked to Gtkmm, even if it doesn't use it. 
This is wrong and a coding anomaly that will need to be resolved.
- Add debug code to fcfs.py. Please remove it when it'll be okay
- Calling dir(SchedulableList.get_item_at(x)) from Python shows
a worringly empty list!


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@395 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-02-23 11:29:25 +00:00
parent a2a492b5d5
commit 8d6b7c500e
11 changed files with 236 additions and 33 deletions

View file

@ -1,4 +1,4 @@
// src/backend/python_policy_manager.cc - Copyright 2005, 2006, University
// src/backend/pyloader/python_policy_manager.cc - Copyright 2005, 2006, University
// of Padova, dept. of Pure and Applied
// Mathematics
//
@ -56,8 +56,10 @@ PythonPolicyManager::get_policy()
void
PythonPolicyManager::init()
{
if(_initialized)
Py_Finalize();
if(_initialized) {
_python_policy = std::auto_ptr<PythonPolicy>(0);
Py_Finalize();
}
Py_Initialize();
_initialized = true;