public interface ISynchronizator
Modifier and Type | Method and Description |
---|---|
void |
invokeLater(Runnable action)
Add an action from external thread.
|
void |
invokeSynchronized(Runnable code)
Invoke some code synchronized with other behavior.
|
boolean |
isExternalThread()
Check if the external thread is accessing.
|
void invokeSynchronized(Runnable code)
code
- The code to execute.
The method will block the externally calling thread until the
action has been executed.
If the synchronizator does not accept external actions (because of termination)
the method will directly fail with a runtime exception.void invokeLater(Runnable action)
action
- The action.boolean isExternalThread()
Copyright © 2013. All Rights Reserved.