Lines Matching refs:tls_key
106 static DWORD tls_key; variable
107 # define tsrm_tls_set(what) TlsSetValue(tls_key, (void*)(what))
108 # define tsrm_tls_get() TlsGetValue(tls_key)
110 static pthread_key_t tls_key; variable
111 # define tsrm_tls_set(what) pthread_setspecific(tls_key, (void*)(what))
112 # define tsrm_tls_get() pthread_getspecific(tls_key)
122 tls_key = TlsAlloc(); in tsrm_startup()
124 pthread_key_create(&tls_key, 0); in tsrm_startup()
221 TlsFree(tls_key); in tsrm_shutdown()
223 pthread_setspecific(tls_key, 0); in tsrm_shutdown()
224 pthread_key_delete(tls_key); in tsrm_shutdown()