Searched refs:nIndex (Results 1 – 4 of 4) sorted by relevance
55 bool OS_SetTLSValue(OS_TLSIndex nIndex, void *lpvValue);56 bool OS_FreeTLSIndex(OS_TLSIndex nIndex);58 inline void* OS_GetTLSValue(OS_TLSIndex nIndex) in OS_GetTLSValue() argument60 ASSERT(nIndex != OS_INVALID_TLS_INDEX); in OS_GetTLSValue()62 return PR_GetThreadPrivate(nIndex); in OS_GetTLSValue()64 return TlsGetValue(nIndex); in OS_GetTLSValue()66 return pthread_getspecific(nIndex); in OS_GetTLSValue()
36 bool OS_SetTLSValue(OS_TLSIndex nIndex, void *lpvValue) in OS_SetTLSValue() argument38 if (nIndex == OS_INVALID_TLS_INDEX) { in OS_SetTLSValue()43 if (pthread_setspecific(nIndex, lpvValue) == 0) in OS_SetTLSValue()50 bool OS_FreeTLSIndex(OS_TLSIndex nIndex) in OS_FreeTLSIndex() argument52 if (nIndex == OS_INVALID_TLS_INDEX) { in OS_FreeTLSIndex()60 if (pthread_key_delete(nIndex) == 0) in OS_FreeTLSIndex()
32 bool OS_SetTLSValue(OS_TLSIndex nIndex, void *lpvValue) in OS_SetTLSValue() argument34 if (nIndex == OS_INVALID_TLS_INDEX) { in OS_SetTLSValue()39 if (TlsSetValue(nIndex, lpvValue)) in OS_SetTLSValue()46 bool OS_FreeTLSIndex(OS_TLSIndex nIndex) in OS_FreeTLSIndex() argument48 if (nIndex == OS_INVALID_TLS_INDEX) { in OS_FreeTLSIndex()53 if (TlsFree(nIndex)) in OS_FreeTLSIndex()
28 bool OS_SetTLSValue(OS_TLSIndex nIndex, void *lpvValue) in OS_SetTLSValue() argument30 if (nIndex == OS_INVALID_TLS_INDEX) { in OS_SetTLSValue()35 return PR_SetThreadPrivate(nIndex, lpvValue) == 0; in OS_SetTLSValue()38 bool OS_FreeTLSIndex(OS_TLSIndex nIndex) in OS_FreeTLSIndex() argument