Lines Matching refs:iTls
46 pthread_key_t iTls = (pthread_key_t)NIL_RTTLS;
47 int rc = pthread_key_create(&iTls, NULL);
50 Assert(iTls != (pthread_key_t)NIL_RTTLS);
51 return iTls;
59 pthread_key_t iTls = (pthread_key_t)NIL_RTTLS;
60 int rc = pthread_key_create(&iTls, pfnDestructor);
63 *piTls = iTls;
64 Assert((pthread_key_t)*piTls == iTls);
72 RTR3DECL(int) RTTlsFree(RTTLS iTls)
74 if (iTls == NIL_RTTLS)
76 int rc = pthread_key_delete(iTls);
83 RTR3DECL(void *) RTTlsGet(RTTLS iTls)
85 return pthread_getspecific(iTls);
89 RTR3DECL(int) RTTlsGetEx(RTTLS iTls, void **ppvValue)
91 if (RT_UNLIKELY(iTls == NIL_RTTLS))
93 *ppvValue = pthread_getspecific(iTls);
98 RTR3DECL(int) RTTlsSet(RTTLS iTls, void *pvValue)
100 int rc = pthread_setspecific(iTls, pvValue);