Ejemplo n.º 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));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns a reader lock that can be elevated to a write lock
 /// </summary>
 public ReadLock Read()
 {
     return(ReadLock.Acquire(this, -1));
 }
Ejemplo n.º 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));
 }