asILockableSharedBool *ScriptObject::GetWeakRefFlag() { if( !weakRefFlag ) weakRefFlag = asCreateLockableSharedBool(); return weakRefFlag; }
asILockableSharedBool * AngelCore::AngelWorldSystem::Actor::GetWeakRefFlag() { if (!m_weakRefFlag) m_weakRefFlag = asCreateLockableSharedBool(); return m_weakRefFlag; }
asILockableSharedBool *GetWeakRefFlag() { if( !weakRefFlag ) { // Lock globally so no other thread can attempt // to create a shared bool at the same time asAcquireExclusiveLock(); // Make sure another thread didn't create the // flag while we waited for the lock if( !weakRefFlag ) weakRefFlag = asCreateLockableSharedBool(); asReleaseExclusiveLock(); } return weakRefFlag; }
asILockableSharedBool* Entity::GetWeakRefFlag(){ if( !weakRefFlag ) weakRefFlag = asCreateLockableSharedBool(); return weakRefFlag; }