Lines Matching refs:tlsIndex
35 static DWORD tlsIndex = TLS_OUT_OF_INDEXES; variable
63 tlsIndex = TlsAlloc(); in stw_tls_init()
64 if (tlsIndex == TLS_OUT_OF_INDEXES) { in stw_tls_init()
177 if (tlsIndex == TLS_OUT_OF_INDEXES) { in stw_tls_init_thread()
186 TlsSetValue(tlsIndex, data); in stw_tls_init_thread()
196 if (tlsIndex == TLS_OUT_OF_INDEXES) { in stw_tls_cleanup_thread()
200 data = (struct stw_tls_data *) TlsGetValue(tlsIndex); in stw_tls_cleanup_thread()
202 TlsSetValue(tlsIndex, NULL); in stw_tls_cleanup_thread()
216 if (tlsIndex != TLS_OUT_OF_INDEXES) { in stw_tls_cleanup()
228 TlsFree(tlsIndex); in stw_tls_cleanup()
229 tlsIndex = TLS_OUT_OF_INDEXES; in stw_tls_cleanup()
268 if (tlsIndex == TLS_OUT_OF_INDEXES) { in stw_tls_get_data()
272 data = (struct stw_tls_data *) TlsGetValue(tlsIndex); in stw_tls_get_data()
297 TlsSetValue(tlsIndex, data); in stw_tls_get_data()