mirror of
https://github.com/microsoft/mimalloc.git
synced 2024-12-27 05:11:11 +08:00
add note on using linker section instead of fiber api
This commit is contained in:
parent
a38c8dd0f9
commit
6e960f06e7
@ -572,6 +572,7 @@ bool _mi_prim_random_buf(void* buf, size_t buf_len) {
|
|||||||
#if !defined(MI_SHARED_LIB)
|
#if !defined(MI_SHARED_LIB)
|
||||||
|
|
||||||
// use thread local storage keys to detect thread ending
|
// 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>
|
#include <fibersapi.h>
|
||||||
#if (_WIN32_WINNT < 0x600) // before Windows Vista
|
#if (_WIN32_WINNT < 0x600) // before Windows Vista
|
||||||
WINBASEAPI DWORD WINAPI FlsAlloc( _In_opt_ PFLS_CALLBACK_FUNCTION lpCallback );
|
WINBASEAPI DWORD WINAPI FlsAlloc( _In_opt_ PFLS_CALLBACK_FUNCTION lpCallback );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user