Lines Matching defs:gSharedState
25 static CRSharedState *gSharedState=NULL;
95 if (!gSharedState)
101 crStateOnTextureUsageRelease(gSharedState, pObj);
166 if (s==gSharedState)
168 gSharedState = NULL;
192 if (!gSharedState)
197 ASMAtomicIncS32(&gSharedState->refCount);
198 return gSharedState;
203 crStateFreeShared(NULL, gSharedState);
214 if (pCtx->shared == gSharedState)
221 if (!gSharedState)
223 gSharedState = pCtx->shared;
228 pCtx->shared = gSharedState;
229 ASMAtomicIncS32(&gSharedState->refCount);
234 if (pCtx->shared != gSharedState)
241 if (gSharedState->refCount==1)
243 gSharedState = NULL;
249 crStateFreeShared(pCtx, gSharedState);
273 return pCtx->shared==gSharedState;
279 if (gSharedState)
281 crWarning("crStateSetSharedContext: shared is being changed from %p to %p", gSharedState, pCtx->shared);
284 gSharedState = pCtx->shared;
532 Assert(!gSharedState);
533 gSharedState = NULL;
694 if (VBoxTlsRefCountGet(ctx) > 1 && ctx->shared == gSharedState)