- 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

@ -36,7 +36,7 @@ ReadyQueue::swap(position a, position b)
// Once we've done the check once, we
// can assume it's safe to use "[]";
// this for performance reasons.
Schedulable* temp = _scheds.at(a);
Thread* temp = _scheds.at(a);
_scheds[a] = _scheds.at(b);
_scheds[b] = temp;
}
@ -49,7 +49,7 @@ ReadyQueue::size() const
}
sgpem::Schedulable&
sgpem::Thread&
ReadyQueue::get_item_at(position index)
throw (std::out_of_range)
{
@ -59,7 +59,7 @@ ReadyQueue::get_item_at(position index)
void
ReadyQueue::append(Schedulable& schedulable)
ReadyQueue::append(Thread& thread)
{
_scheds.push_back(&schedulable);
_scheds.push_back(&thread);
}