Otherwise, returns the result of GetCurrentThreadId on Windows, and pthread_self on POSIX.
The value is unique for the current process.
ThreadID id() @property @safe @nogcGets the OS identifier for this thread.
Otherwise, returns the result of GetCurrentThreadId on Windows, and pthread_self on POSIX.
The value is unique for the current process.