Lines Matching refs:GlobalParseContextIndex
19 OS_TLSIndex GlobalParseContextIndex = OS_INVALID_TLS_INDEX; variable
23 assert(GlobalParseContextIndex == OS_INVALID_TLS_INDEX); in InitializeParseContextIndex()
25 GlobalParseContextIndex = OS_AllocTLSIndex(); in InitializeParseContextIndex()
26 return GlobalParseContextIndex != OS_INVALID_TLS_INDEX; in InitializeParseContextIndex()
31 assert(GlobalParseContextIndex != OS_INVALID_TLS_INDEX); in FreeParseContextIndex()
33 OS_FreeTLSIndex(GlobalParseContextIndex); in FreeParseContextIndex()
34 GlobalParseContextIndex = OS_INVALID_TLS_INDEX; in FreeParseContextIndex()
39 assert(GlobalParseContextIndex != OS_INVALID_TLS_INDEX); in SetGlobalParseContext()
40 OS_SetTLSValue(GlobalParseContextIndex, context); in SetGlobalParseContext()
45 assert(GlobalParseContextIndex != OS_INVALID_TLS_INDEX); in GetGlobalParseContext()
46 return static_cast<TParseContext*>(OS_GetTLSValue(GlobalParseContextIndex)); in GetGlobalParseContext()