MSVC provides two functions and one macro inside `ucrt`'s `stddef.h` ```cpp _ACRTIMP extern unsigned long __cdecl __threadid(void); #define _threadid (__threadid()) _ACRTIMP extern uintptr_t __cdecl __threadhandle(void); ``` However when I choose `clang-cl` toolset, they are no longer available.