| 844 | #define WIN32_LEAN_AND_MEAN |
| 845 | #include <windows.h> |
| 846 | static inline mi_threadid_t _mi_thread_id(void) mi_attr_noexcept { |
| 847 | // Windows: works on Intel and ARM in both 32- and 64-bit |
| 848 | return (uintptr_t)NtCurrentTeb(); |
| 849 | } |
| 850 | |
| 851 | // We use assembly for a fast thread id on the main platforms. The TLS layout depends on |
| 852 | // both the OS and libc implementation so we use specific tests for each main platform. |
no test coverage detected