You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an escape hatch when thread-local is not supported
I am encountering this case with LLVM's JIT, which is not able to handle thread local relocations as of LLVM 12, even for __thread ; thus use the std::thread API in that case.
staticconstthread_id_t invalid_thread_id2 = 0xFFFFFFFFU; // Not technically guaranteed to be invalid, but is never used in practice. Note that all Win32 thread IDs are presently multiples of 4.
0 commit comments