Lines Matching refs:ThreadInitializeIndex
46 OS_TLSIndex ThreadInitializeIndex = OS_INVALID_TLS_INDEX; variable
56 if (ThreadInitializeIndex != OS_INVALID_TLS_INDEX) { in InitProcess()
65 ThreadInitializeIndex = OS_AllocTLSIndex(); in InitProcess()
67 if (ThreadInitializeIndex == OS_INVALID_TLS_INDEX) { in InitProcess()
100 if (ThreadInitializeIndex == OS_INVALID_TLS_INDEX) { in InitThread()
105 if (OS_GetTLSValue(ThreadInitializeIndex) != 0) in InitThread()
108 if (! OS_SetTLSValue(ThreadInitializeIndex, (void *)1)) { in InitThread()
127 if (ThreadInitializeIndex == OS_INVALID_TLS_INDEX) in DetachThread()
133 if (OS_GetTLSValue(ThreadInitializeIndex) != 0) { in DetachThread()
134 if (!OS_SetTLSValue(ThreadInitializeIndex, (void *)0)) { in DetachThread()
154 if (ThreadInitializeIndex == OS_INVALID_TLS_INDEX) in DetachProcess()
159 OS_FreeTLSIndex(ThreadInitializeIndex); in DetachProcess()
160 ThreadInitializeIndex = OS_INVALID_TLS_INDEX; in DetachProcess()