예제 #1
0
 private WriteLock(ReaderWriterLockObject lockObject)
 {
     m_lockObject = lockObject;
     m_lockObject.Lock.EnterWriteLock();
     m_lockObject.IsLocked        = true;
     m_lockObject.ManagedThreadId = Thread.CurrentThread.ManagedThreadId;
     m_lockObject.ThreadName      = Thread.CurrentThread.Name;
 }
예제 #2
0
 public static WriteLock CreateLock(ReaderWriterLockObject lockObject)
 {
     return(new WriteLock(lockObject));
 }
예제 #3
0
 public static UpgradeableReadLock CreateLock(ReaderWriterLockObject lockObject)
 {
     return(new UpgradeableReadLock(lockObject));
 }