public GameWorld(Size logicalSize) { Logger.Log("Constructing GameWorld..."); m_safeGameObjects = new ThreadSafeCollection <GameObject>(); m_staticObjects = new List <StaticObject>(); m_planeControllers = new List <PlaneControllerBase>(); Size = logicalSize; }
public SafeReadHandle(ThreadSafeCollection <T> threadSafeCollection) { m_collection = threadSafeCollection; threadSafeCollection.m_RWLock.EnterUpgradeableReadLock(); }