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)
131 pth_key_create(&tls_key, 0); in tsrm_startup()
133 pthread_key_create( &tls_key, 0 ); in tsrm_startup()
136 st_key_create(&tls_key, 0); in tsrm_startup()
138 tls_key = TlsAlloc(); in tsrm_startup()
218 pthread_setspecific(tls_key, 0); in tsrm_shutdown()
219 pthread_key_delete(tls_key); in tsrm_shutdown()
221 TlsFree(tls_key); in tsrm_shutdown()