Gets the OS identifier for this thread.
If the thread hasn't been started yet, returns ThreadID$(D.init). Otherwise, returns the result of GetCurrentThreadId on Windows, and pthread_self on POSIX.
The value is unique for the current process.
See Implementation
Gets the OS identifier for this thread.