コード例 #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));
 }