- Added the Schedulable interface
- Renamed SchedulableStatus to DynamicSchedulable - Implemented almost all methods of DynamicSchedulable git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@630 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
94c0b563c7
commit
a1662de194
22 changed files with 492 additions and 239 deletions
|
@ -120,7 +120,7 @@ class Policy:
|
|||
# of the following ways:
|
||||
# @code
|
||||
# # As a lambda anonymous function (preferred)
|
||||
# # (x and y are two SchedulableStatus objects)
|
||||
# # (x and y are two DynamicSchedulable objects)
|
||||
# cmpf = lambda x,y: x.someProperty() < y.someProperty()
|
||||
#
|
||||
# # As a normal *global* function
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
#include "policy_parameters.hh"
|
||||
#include "static_schedulable.hh"
|
||||
#include "schedulable_queue.hh"
|
||||
#include "schedulable_status.hh"
|
||||
#include "dynamic_schedulable.hh"
|
||||
#include "scheduler.hh"
|
||||
%}
|
||||
|
||||
|
@ -152,7 +152,7 @@ namespace sgpem {
|
|||
{
|
||||
public:
|
||||
unsigned int size() const;
|
||||
const sgpem::SchedulableStatus* get_item_at(const unsigned int&) const;
|
||||
const sgpem::DynamicSchedulable* get_item_at(const unsigned int&) const;
|
||||
void swap(unsigned int positionA, unsigned int positionB) throw();
|
||||
|
||||
private:
|
||||
|
@ -164,7 +164,7 @@ namespace sgpem {
|
|||
}; //~ class Schedulable
|
||||
|
||||
// ---------------------------------------------
|
||||
class SchedulableStatus
|
||||
class DynamicSchedulable
|
||||
{
|
||||
public:
|
||||
enum state
|
||||
|
@ -176,7 +176,7 @@ namespace sgpem {
|
|||
state_terminated = 1<<4
|
||||
};
|
||||
|
||||
SchedulableStatus(const SchedulableStatus& obj);
|
||||
DynamicSchedulable(const DynamicSchedulable& obj);
|
||||
|
||||
int get_cpu_time_left() const;
|
||||
int get_last_scheduled() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue