Home
last modified time | relevance | path

Searched refs:nIndex (Results 1 – 4 of 4) sorted by relevance

/external/webkit/Source/ThirdParty/ANGLE/src/compiler/
Dosinclude.h55 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() argument
60 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()
Dossource_posix.cpp36 bool OS_SetTLSValue(OS_TLSIndex nIndex, void *lpvValue) in OS_SetTLSValue() argument
38 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() argument
52 if (nIndex == OS_INVALID_TLS_INDEX) { in OS_FreeTLSIndex()
60 if (pthread_key_delete(nIndex) == 0) in OS_FreeTLSIndex()
Dossource_win.cpp32 bool OS_SetTLSValue(OS_TLSIndex nIndex, void *lpvValue) in OS_SetTLSValue() argument
34 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() argument
48 if (nIndex == OS_INVALID_TLS_INDEX) { in OS_FreeTLSIndex()
53 if (TlsFree(nIndex)) in OS_FreeTLSIndex()
Dossource_nspr.cpp28 bool OS_SetTLSValue(OS_TLSIndex nIndex, void *lpvValue) in OS_SetTLSValue() argument
30 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