public MySharedLock(FastResourceLock lockObject) { m_lockObject = lockObject; m_lockObject.AcquireShared(); }
public MyExclusiveLock(FastResourceLock lockObject) { m_lockObject = lockObject; m_lockObject.AcquireExclusive(); }
/// <summary> /// Call dispose or use using block to release lock /// </summary> public static MyExclusiveLock AcquireExclusiveUsing(this FastResourceLock lockObject) { return(new MyExclusiveLock(lockObject)); }
/// <summary> /// Call dispose or use using block to release lock /// </summary> public static MySharedLock AcquireSharedUsing(this FastResourceLock lockObject) { return(new MySharedLock(lockObject)); }
public MyExclusiveLock(FastResourceLock lockObject) { m_lockObject = lockObject; m_lockObject.AcquireExclusive(); }
public MySharedLock(FastResourceLock lockObject) { m_lockObject = lockObject; m_lockObject.AcquireShared(); }
public MySharedHashSet(FastResourceLock lockObject, HashSet<IMyObjectToDetect> hashSet) { m_lockObject = lockObject; m_hashSet = hashSet; m_lockObject.AcquireShared(); }