Class ExecuteLock
- java.lang.Object
- 
- jmri.jmrit.logixng.implementation.ExecuteLock
 
- 
 public class ExecuteLock extends java.lang.Object Protect the DefaultConditionalNG.execute() method. That method may be called recursively from different threads.
- 
- 
Constructor SummaryConstructors Constructor Description ExecuteLock()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanloop()Get the status of the lock during loop.booleanonce()Get the status of the lock.
 
- 
- 
- 
Constructor Detail- 
ExecuteLockpublic ExecuteLock() 
 
- 
 - 
Method Detail- 
oncepublic boolean 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.
 
 - 
looppublic boolean 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.
 
 
- 
 
-