- Revert back to old behaviour. Still wrong, but at least understandable

git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@834 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
tchernobog 2006-08-09 13:41:52 +00:00
parent 72e562e803
commit 86308ca185
1 changed files with 9 additions and 2 deletions

View File

@ -7,8 +7,7 @@ import sgpem
# This class also exposes the method sort(), which can be # This class also exposes the method sort(), which can be
# used to easily sort the queue of ready process with a # used to easily sort the queue of ready process with a
# user-defined given compare function. # user-defined given compare function.
# The method get_parameters() is inherited from sgpem.CPUPolicy. class CPUPolicy:
class CPUPolicy(sgpem.CPUPolicy):
## @var Avoid instantiation of an abstract class. ## @var Avoid instantiation of an abstract class.
# @see Abstract.Metaclass # @see Abstract.Metaclass
__metaclass__ = Metaclass __metaclass__ = Metaclass
@ -93,6 +92,14 @@ class CPUPolicy(sgpem.CPUPolicy):
# @return 0+ To specify a time slice duration for this policy # @return 0+ To specify a time slice duration for this policy
get_time_slice = AbstractMethod('get_time_slice') get_time_slice = AbstractMethod('get_time_slice')
## @brief Returns the PolicyParameters instance you can use in
# Policy::Policy::configure()
#
# @return A sgpem::PolicyParameters instance
def get_parameters(self):
return sgpem.Scheduler.get_instance().get_policy().get_parameters()
## @brief This function implements an in-place stable sort ## @brief This function implements an in-place stable sort
# using directly ReadyQueue methods # using directly ReadyQueue methods
# #