Annotation Interface ThreadSafe
Indicates that the annotated member may be called on multiple threads at once, or concurrently from the game thread,
and therefore the implementation must take care when accessing shared state. For instance methods, this implies that
the method is called on the same instance from multiple threads.
When a class is annotated, all methods within that class are considered to be @Concurrent.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanWhether the annotated member may also be called from the game thread itself.
-
Element Details
-
withGameThread
boolean withGameThreadWhether the annotated member may also be called from the game thread itself.- Default:
- true
-