thisThreadID

Returns the process ID of the current thread, which is guaranteed to be unique within the current process.

@property @trusted nothrow @nogc
ThreadID
thisThreadID
()

Return Value

Type: ThreadID

A core.thread.ThreadID value for the calling thread.

Examples

writefln("Current thread ID: %s", thisThreadID);

Meta