12 #if !defined(ANGLE_OS_POSIX)
13 #error Trying to build a posix specific file in a non-posix build.
21 pthread_key_t pPoolIndex;
26 if ((pthread_key_create(&pPoolIndex,
NULL)) != 0) {
27 assert(0 &&
"OS_AllocTLSIndex(): Unable to allocate Thread Local Storage");
38 if (nIndex == OS_INVALID_TLS_INDEX) {
39 assert(0 &&
"OS_SetTLSValue(): Invalid TLS Index");
43 if (pthread_setspecific(nIndex, lpvValue) == 0)
52 if (nIndex == OS_INVALID_TLS_INDEX) {
53 assert(0 &&
"OS_SetTLSValue(): Invalid TLS Index");
60 if (pthread_key_delete(nIndex) == 0)
bool OS_FreeTLSIndex(OS_TLSIndex nIndex)
bool OS_SetTLSValue(OS_TLSIndex nIndex, void *lpvValue)
OS_TLSIndex OS_AllocTLSIndex()