Class ExecuteLock
java.lang.Object
jmri.jmrit.logixng.implementation.ExecuteLock
Protect the DefaultConditionalNG.execute() method.
That method may be called recursively from different threads.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ExecuteLock
public ExecuteLock()
-
-
Method Details
-
once
Get the status of the lock. If the call succeeds, the caller is responsible to loop while the method loop() returns true.- Returns:
- true if the caller gets the lock.
-
loop
Get the status of the lock during loop. The caller is responsible to loop while the method returns true.- Returns:
- true if the caller still has the lock.
-