- 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:
parent
a2a492b5d5
commit
8d6b7c500e
11 changed files with 236 additions and 33 deletions
|
@ -1,4 +1,4 @@
|
|||
// src/backend/python_policy.hh - Copyright 2005, 2006, University
|
||||
// src/backend/pyloader/python_policy.hh - Copyright 2005, 2006, University
|
||||
// of Padova, dept. of Pure and Applied
|
||||
// Mathematics
|
||||
//
|
||||
|
@ -29,11 +29,13 @@
|
|||
#include <iostream>
|
||||
|
||||
#include "../policy.hh"
|
||||
#include "../user_interrupt_exception.hh"
|
||||
|
||||
namespace sgpem
|
||||
{
|
||||
class PythonPolicy;
|
||||
class PythonPolicyManager;
|
||||
class UserInterruptException;
|
||||
|
||||
class SG_DLLEXPORT PythonPolicy : public Policy
|
||||
{
|
||||
|
@ -43,11 +45,13 @@ namespace sgpem
|
|||
|
||||
virtual ~PythonPolicy();
|
||||
|
||||
void configure();
|
||||
void sort_queue(Scheduler::event) const;
|
||||
void configure() throw(UserInterruptException);
|
||||
void sort_queue(Scheduler::event) const throw(UserInterruptException);
|
||||
Glib::ustring get_description() const;
|
||||
bool is_pre_emptive() const;
|
||||
int get_time_slice() const;
|
||||
bool is_pre_emptive() const throw(UserInterruptException);
|
||||
int get_time_slice() const throw(UserInterruptException);
|
||||
|
||||
// Singing with Caipha's voice: "must die, must die, this method must die!"
|
||||
void set_time_slice(const int&);
|
||||
|
||||
private:
|
||||
|
@ -55,7 +59,7 @@ namespace sgpem
|
|||
PythonPolicy(const PythonPolicy&);
|
||||
PythonPolicy& operator=(const PythonPolicy&);
|
||||
|
||||
void wait_unlock() const;
|
||||
void wait_unlock() const throw(UserInterruptException);
|
||||
|
||||
PyObject* _adapter;
|
||||
PyObject* _adapter_dict;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue