Ejemplo n.º 1
0
asILockableSharedBool *ScriptObject::GetWeakRefFlag()
{
    if( !weakRefFlag )
        weakRefFlag = asCreateLockableSharedBool();

    return weakRefFlag;
}
Ejemplo n.º 2
0
asILockableSharedBool * AngelCore::AngelWorldSystem::Actor::GetWeakRefFlag()
{
	if (!m_weakRefFlag)
		m_weakRefFlag = asCreateLockableSharedBool();

	return m_weakRefFlag;
}
Ejemplo n.º 3
0
	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;
	}
Ejemplo n.º 4
0
asILockableSharedBool* Entity::GetWeakRefFlag(){
    if( !weakRefFlag )
        weakRefFlag = asCreateLockableSharedBool();

    return weakRefFlag;
}