Lines Matching full:tasks
102 def __init__(self, tasks = [0], event = RunqueueEventUnknown()): argument
103 self.tasks = tuple(tasks)
109 if taskState(prev_state) == "R" and next in self.tasks \
110 and prev in self.tasks:
116 next_tasks = list(self.tasks[:])
117 if prev in self.tasks:
129 if old not in self.tasks:
131 next_tasks = [task for task in self.tasks if task != old]
136 if new in self.tasks:
139 next_tasks = self.tasks[:] + tuple([new])
153 """ Provide the number of tasks on the runqueue.
155 return len(self.tasks) - 1
158 ret = self.tasks.__repr__()
279 for t in rq.tasks: