Beispiel #1
0
 /// <summary>
 /// Returns a reader lock that can be elevated to a write lock
 /// </summary>
 /// <exception cref="System.TimeoutException"/>
 public ReadLock Read(int timeout)
 {
     return(ReadLock.Acquire(this, timeout));
 }
Beispiel #2
0
 /// <summary>
 /// Returns a reader lock that can be elevated to a write lock
 /// </summary>
 public ReadLock Read()
 {
     return(ReadLock.Acquire(this, -1));
 }
Beispiel #3
0
 /// <summary>
 /// Returns a reader lock that can be elevated to a write lock
 /// </summary>
 /// <exception cref="System.TimeoutException"/>
 public ReadLock Read(int millisecondsTimeout)
 {
     return(ReadLock.Acquire(this, millisecondsTimeout));
 }