- Renamed Schedulable to StaticSchedulable
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@626 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
c381ee8875
commit
1f7972c308
9 changed files with 33 additions and 33 deletions
|
@ -2,7 +2,7 @@
|
|||
%{
|
||||
#include "policy.hh"
|
||||
#include "policy_parameters.hh"
|
||||
#include "schedulable.hh"
|
||||
#include "static_schedulable.hh"
|
||||
#include "schedulable_queue.hh"
|
||||
#include "schedulable_status.hh"
|
||||
#include "scheduler.hh"
|
||||
|
@ -130,21 +130,21 @@ namespace sgpem {
|
|||
}; //~ class PolicyParameters
|
||||
|
||||
// --------------------------------------------
|
||||
class Schedulable
|
||||
class StaticSchedulable
|
||||
{
|
||||
public:
|
||||
virtual ~Schedulable() = 0;
|
||||
virtual ~StaticSchedulable() = 0;
|
||||
|
||||
virtual unsigned int get_arrival_time() const;
|
||||
int get_priority() const;
|
||||
unsigned int get_total_cpu_time() const;
|
||||
|
||||
%ignore Schedulable::get_name() const;
|
||||
%ignore StaticSchedulable::get_name() const;
|
||||
%extend {
|
||||
const char* get_name() const
|
||||
{ return self->get_name().c_str(); }
|
||||
}
|
||||
}; //~ class Schedulable
|
||||
}; //~ class StaticSchedulable
|
||||
|
||||
|
||||
// --------------------------------------------
|
||||
|
@ -181,7 +181,7 @@ namespace sgpem {
|
|||
int get_cpu_time_left() const;
|
||||
int get_last_scheduled() const;
|
||||
state get_state() const;
|
||||
const sgpem::Schedulable* get_schedulable() const;
|
||||
const sgpem::StaticSchedulable* get_schedulable() const;
|
||||
};
|
||||
|
||||
// ---------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue