Commit 728fd4f0 authored by Georgios Dagkakis's avatar Georgios Dagkakis

correction in ShiftScheduler

parent ea7123b1
...@@ -116,14 +116,10 @@ class ShiftScheduler(ObjectInterruption): ...@@ -116,14 +116,10 @@ class ShiftScheduler(ObjectInterruption):
if self.endUnfinished and self.victim.isProcessing: if self.endUnfinished and self.victim.isProcessing:
self.victim.isWorkingOnTheLast=True self.victim.isWorkingOnTheLast=True
self.waitingSignal=True self.waitingSignal=True
self.expectedSignals['endedLastProcessing']=1
self.expectedSignals['endedLastProcessing']=1 yield self.victim.endedLastProcessing
self.expectedSignals['endedLastProcessing']=0
yield self.victim.endedLastProcessing transmitter, eventTime=self.victim.endedLastProcessing.value
self.expectedSignals['endedLastProcessing']=0
transmitter, eventTime=self.victim.endedLastProcessing.value
self.victim.endedLastProcessing=self.env.event() self.victim.endedLastProcessing=self.env.event()
self.interruptVictim() self.interruptVictim()
# if the victim is operator # if the victim is operator
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment