2006-03-08 17:47:39 +01:00
|
|
|
from Policy import Policy
|
|
|
|
import sys
|
|
|
|
|
|
|
|
class python_loader_get_time_slice(Policy) :
|
|
|
|
def __init__(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def configure(self):
|
|
|
|
pass
|
|
|
|
|
|
|
|
def is_preemptive(self):
|
|
|
|
return False
|
|
|
|
|
|
|
|
def get_time_slice(self):
|
2006-03-09 22:56:16 +01:00
|
|
|
print "[II] Entering willingly an endless loop."
|
2006-03-08 17:47:39 +01:00
|
|
|
while True:
|
|
|
|
pass
|
|
|
|
return -1
|
|
|
|
|
|
|
|
def sort_queue(self, event, queue):
|
|
|
|
pass
|