Win32Thread

Win32 implementation of native threading.

Constructors

this
this(ThreadContext ctx)

Creates a new thread from a context.

this
this(HANDLE handle)

Creates a thread by providing an existing handle.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

cancel
void cancel()

Forcefully cancels the thread, stopping execution.

join
bool join(uint timeout, bool rethrow)

Waits for the thread to finish execution.

start
void start()

Starts the given thread.

Properties

isRunning
bool isRunning [@property getter]

Whether the thread is currently running.

tid
ThreadId tid [@property getter]

ID of the thread.

Meta