Table of Contents

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 = 2

Could be called from either. Handle with care.

MainThread = 0

Called from the main thread (or the thread calling World.Step). Safe to access global state.

ParallelWorker = 1

Called from background worker threads. Code must be thread-safe and lock-free.