Enum ThreadContext
- Namespace
- Jitter2
- Assembly
- Jitter2.dll
Specifies the threading context in which code executes or a callback is invoked.
public enum ThreadContext
Fields
Any = 2Could be called from either. Handle with care.
MainThread = 0Called from the main thread (or the thread calling World.Step). Safe to access global state.
ParallelWorker = 1Called from background worker threads. Code must be thread-safe and lock-free.