ThreadContext

Description

sealed class Tinman.Core.Threading.ThreadContext

Base interface for classes that provide context information for a main method of a background thread.

Public / Attributes

Owner


public readonly attribute Owner → (Thread)

The Thread object that owns this context.

Parameter


public readonly attribute Parameter → (object)

The parameter object that has been specified when the thread has been started.

Shall​Init


public attribute ShallInit → (get)

value : bool

true if the thread shall perform initialization, false if not.

Shall the thread perform one-time initialization in IThreadMain.Run?

Shall​Quit


public attribute ShallQuit → (get)

value : bool

true if the thread shall terminate as soon as possible, false if not.

Shall the thread terminate gracefully?

Shall​Yield


public attribute ShallYield → (get)

value : bool

true if yield back control by returning true from IThreadMain.Run,
false to continue execution of IThreadMain.Run.

Shall the thread yield back control to the sole application thread, when running in single-threaded emulation mode?