Lines Matching refs:self
55 def __init__(self, cpus):
56 self.first_cpu = None
59 if self.first_cpu != None:
61 self.first_cpu = cpuno
63 if self.first_cpu == None:
66 self.cur_cpu = self.first_cpu
67 self.cpus = cpus
69 def next(self):
70 self.cur_cpu = (self.cur_cpu + 1) % len(self.cpus)
71 return self.cpus[self.cur_cpu]
73 def first(self):
74 return self.cpus[self.first_cpu]