additional control before preemption. The object must be Up before any attempt...

additional control before preemption. The object must be Up before any attempt for preemption is performed
parent c0858a7b
...@@ -229,7 +229,8 @@ class CoreObject(Process): ...@@ -229,7 +229,8 @@ class CoreObject(Process):
pass pass
# if the obtained Entity is critical and the receiver is preemptive and not operated # if the obtained Entity is critical and the receiver is preemptive and not operated
# in the case that the receiver is operated the preemption is performed by the operators # in the case that the receiver is operated the preemption is performed by the operators
if activeEntity.isCritical and activeObject.receiver.isPreemptive and not receiverOperated: # if the receiver is not Up then no preemption will be performed
if activeEntity.isCritical and activeObject.receiver.isPreemptive and activeObject.receiver.Up and not receiverOperated:
#if the receiver is not empty #if the receiver is not empty
if len(self.receiver.getActiveObjectQueue())>0: if len(self.receiver.getActiveObjectQueue())>0:
#if the receiver does not hold an Entity that is also critical #if the receiver does not hold an Entity that is also critical
......
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