Go to the documentation of this file.
6 #if defined ENABLE_MT && defined HOST_UNIX
7 #define FB_TLSENTRY pthread_key_t
8 #define FB_TLSALLOC(key) pthread_key_create( &(key), NULL )
9 #define FB_TLSFREE(key) pthread_key_delete( (key) )
10 #define FB_TLSSET(key,value) pthread_setspecific( (key), (const void *)(value) )
11 #define FB_TLSGET(key) pthread_getspecific( (key) )
12 #elif defined ENABLE_MT && defined HOST_WIN32
13 #define FB_TLSENTRY DWORD
14 #define FB_TLSALLOC(key) key = TlsAlloc( )
15 #define FB_TLSFREE(key) TlsFree( (key) )
16 #define FB_TLSSET(key,value) TlsSetValue( (key), (LPVOID)(value) )
17 #define FB_TLSGET(key) TlsGetValue( (key) )
19 #define FB_TLSENTRY uintptr_t
20 #define FB_TLSALLOC(key) key = NULL
21 #define FB_TLSFREE(key) key = NULL
22 #define FB_TLSSET(key,value) key = (FB_TLSENTRY)value
23 #define FB_TLSGET(key) key
33 ctx = (
void *)calloc( 1, len );
61 void fb_TlsInit(
void )
69 void fb_TlsExit(
void )