Lines Matching refs:tls_key
98 static pth_key_t tls_key; variable
99 # define tsrm_tls_set(what) pth_key_setdata(tls_key, (void*)(what))
100 # define tsrm_tls_get() pth_key_getdata(tls_key)
104 static pthread_key_t tls_key; variable
105 # define tsrm_tls_set(what) pthread_setspecific(tls_key, (void*)(what))
106 # define tsrm_tls_get() pthread_getspecific(tls_key)
109 static int tls_key; variable
110 # define tsrm_tls_set(what) st_thread_setspecific(tls_key, (void*)(what))
111 # define tsrm_tls_get() st_thread_getspecific(tls_key)
114 static DWORD tls_key; variable
115 # define tsrm_tls_set(what) TlsSetValue(tls_key, (void*)(what))
116 # define tsrm_tls_get() TlsGetValue(tls_key)
119 static int32 tls_key; variable
120 # define tsrm_tls_set(what) tls_set(tls_key, (void*)(what))
121 # define tsrm_tls_get() (tsrm_tls_entry*)tls_get(tls_key)
136 pth_key_create(&tls_key, 0); in tsrm_startup()
138 pthread_key_create( &tls_key, 0 ); in tsrm_startup()
141 st_key_create(&tls_key, 0); in tsrm_startup()
143 tls_key = TlsAlloc(); in tsrm_startup()
145 tls_key = tls_allocate(); in tsrm_startup()
225 pthread_setspecific(tls_key, 0); in tsrm_shutdown()
226 pthread_key_delete(tls_key); in tsrm_shutdown()
228 TlsFree(tls_key); in tsrm_shutdown()