Commit 7cde7e89 authored by Georgios Dagkakis's avatar Georgios Dagkakis

interrupt only victims that wait for interruption signal

parent 136adc14
...@@ -175,8 +175,7 @@ class Failure(ObjectInterruption): ...@@ -175,8 +175,7 @@ class Failure(ObjectInterruption):
self.expectedSignals['victimEndsProcess']=0 self.expectedSignals['victimEndsProcess']=0
# interrupt the victim only if it was not previously interrupted # interrupt the victim
if not self.victim.interruptionStart.triggered:
self.interruptVictim() # interrupt the victim self.interruptVictim() # interrupt the victim
self.victim.Up=False self.victim.Up=False
......
...@@ -73,7 +73,6 @@ class ShiftScheduler(ObjectInterruption): ...@@ -73,7 +73,6 @@ class ShiftScheduler(ObjectInterruption):
# TODO more generic implementation # TODO more generic implementation
if issubclass(self.victim.__class__, CoreObject): if issubclass(self.victim.__class__, CoreObject):
# interrupt the victim only if it was not previously interrupted # interrupt the victim only if it was not previously interrupted
if not self.victim.interruptionStart.triggered:
self.interruptVictim() # interrupt the victim self.interruptVictim() # interrupt the victim
else: else:
CoreObject.requestAllocation() CoreObject.requestAllocation()
...@@ -147,7 +146,6 @@ class ShiftScheduler(ObjectInterruption): ...@@ -147,7 +146,6 @@ class ShiftScheduler(ObjectInterruption):
# TODO more generic implementation # TODO more generic implementation
if issubclass(self.victim.__class__, CoreObject): if issubclass(self.victim.__class__, CoreObject):
# interrupt the victim only if it was not previously interrupted # interrupt the victim only if it was not previously interrupted
if not self.victim.interruptionStart.triggered:
self.interruptVictim() # interrupt the victim self.interruptVictim() # interrupt the victim
else: else:
CoreObject.requestAllocation() CoreObject.requestAllocation()
......
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