예제 #1
0
 /// <summary>
 /// Returns a read and write lock
 /// </summary>
 public WriteLock Write()
 {
     return(WriteLock.Acquire(this, -1));
 }
예제 #2
0
 /// <summary>
 /// Returns a read and write lock
 /// </summary>
 /// <exception cref="System.TimeoutException"/>
 public WriteLock Write(int timeout)
 {
     return(WriteLock.Acquire(this, timeout));
 }
예제 #3
0
 /// <summary>
 /// Returns a read and write lock
 /// </summary>
 /// <exception cref="System.TimeoutException"/>
 public WriteLock Write(int millisecondsTimeout)
 {
     return(WriteLock.Acquire(this, millisecondsTimeout));
 }