- TODO and FIXME reduced to 38
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@941 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
57059b647b
commit
696c513ed2
13 changed files with 13 additions and 106 deletions
|
@ -103,7 +103,7 @@ PythonCPUPolicy::activate() throw(UserInterruptException, MalformedPolicyExcepti
|
|||
Glib::RecMutex::Lock lock(_mtx);;
|
||||
set_callback_policy(const_cast<PythonCPUPolicy*>(this));
|
||||
|
||||
// FIXME write the rest, taking away code from constructor
|
||||
// TODO write the rest, taking away code from constructor
|
||||
|
||||
configure();
|
||||
|
||||
|
@ -117,7 +117,7 @@ PythonCPUPolicy::deactivate()
|
|||
Glib::RecMutex::Lock lock(_mtx);;
|
||||
set_callback_policy(const_cast<PythonCPUPolicy*>(this));
|
||||
|
||||
// FIXME See if some code has to be moved here from the
|
||||
// TODO See if some code has to be moved here from the
|
||||
// destructor, AFTER having written activate()
|
||||
|
||||
_parameters.clear();
|
||||
|
|
|
@ -16,10 +16,5 @@ class python_loader_configure(CPUPolicy) :
|
|||
def get_time_slice(self):
|
||||
return -1
|
||||
|
||||
# FIXME incorrect, but must be implemented to allow
|
||||
# loading from the policy manager
|
||||
def wants(self):
|
||||
return 0
|
||||
|
||||
def sort_queue(self, queue):
|
||||
pass
|
||||
|
|
|
@ -17,10 +17,5 @@ class python_loader_get_time_slice(CPUPolicy) :
|
|||
pass
|
||||
return -1
|
||||
|
||||
# FIXME incorrect, but must be implemented to allow
|
||||
# loading from the policy manager
|
||||
def wants(self):
|
||||
return 0
|
||||
|
||||
def sort_queue(self, queue):
|
||||
pass
|
||||
|
|
|
@ -17,10 +17,5 @@ class python_loader_is_preemptive(CPUPolicy) :
|
|||
def get_time_slice(self):
|
||||
return -1
|
||||
|
||||
# FIXME incorrect, but must be implemented to allow
|
||||
# loading from the policy manager
|
||||
def wants(self):
|
||||
return 0
|
||||
|
||||
def sort_queue(self, queue):
|
||||
pass
|
||||
|
|
|
@ -14,13 +14,6 @@ class python_loader_sort_queue(CPUPolicy) :
|
|||
def get_time_slice(self):
|
||||
return -1
|
||||
|
||||
|
||||
# FIXME incorrect, but must be implemented to allow
|
||||
# loading from the policy manager
|
||||
def wants(self):
|
||||
return 0
|
||||
|
||||
|
||||
def sort_queue(self, queue):
|
||||
print "[II] Entering willingly an endless loop."
|
||||
while True:
|
||||
|
|
|
@ -89,12 +89,8 @@ main(int argc, char** argv)
|
|||
CPUPolicy* pol = find_pol_by_name(policies, "python_loader_configure");
|
||||
assert(pol != NULL);
|
||||
|
||||
// FIXME : Maybe activating a policy only to configure it is an overkill?
|
||||
// Who gives a fuck about it?
|
||||
// activate_policy will also configure the policy
|
||||
pgk.activate_policy(&his, pol);
|
||||
|
||||
//already done by activate_policy
|
||||
//pol->configure();
|
||||
}
|
||||
catch (UserInterruptException e)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue