add note on using linker section instead of fiber api

This commit is contained in:
Daan 2024-05-16 15:13:03 -07:00
parent a38c8dd0f9
commit 6e960f06e7
1 changed files with 1 additions and 0 deletions

View File

@ -572,6 +572,7 @@ bool _mi_prim_random_buf(void* buf, size_t buf_len) {
#if !defined(MI_SHARED_LIB)
// use thread local storage keys to detect thread ending
// note: another design could be to use special linker sections (see issue #869)
#include <fibersapi.h>
#if (_WIN32_WINNT < 0x600) // before Windows Vista
WINBASEAPI DWORD WINAPI FlsAlloc( _In_opt_ PFLS_CALLBACK_FUNCTION lpCallback );