- Only schedule Threads. Ditch support for Policies deciding

if they want to schedule Threads or Processes altogether
- Move setter methods for last_acquisition/last_release from
DynamicSchedulable to DynamicThread
- Rewrite aforesaid methods, along with the respective getter
methods, into Dynamic(Thread|Process)


git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@708 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-07-04 10:46:15 +00:00
parent 736aa25456
commit a378239d60
17 changed files with 119 additions and 194 deletions

View file

@ -29,7 +29,7 @@
namespace sgpem
{
class ReadyQueue;
class Schedulable;
class Thread;
class SG_DLLEXPORT ReadyQueue
{
@ -37,14 +37,14 @@ namespace sgpem
typedef unsigned int position;
typedef unsigned int size_t;
void swap(position a, position b) throw (std::out_of_range);
size_t size() const;
Schedulable& get_item_at(position index) throw (std::out_of_range);
void append(Schedulable& schedulable);
private:
typedef std::vector<Schedulable*> Schedulables;
Schedulables _scheds;
void swap(position a, position b) throw (std::out_of_range);
size_t size() const;
Thread& get_item_at(position index) throw (std::out_of_range);
void append(Thread& schedulable);
private:
typedef std::vector<Thread*> Threads;
Threads _scheds;
};
}