示例#1
0
 /// <summary>
 /// Constructor.
 /// </summary>
 /// <param name="parent">The parent lock.</param>
 /// <param name="isWriteLock"><c>true</c> if for a write lock.</param>
 internal Lock(AsyncReaderWriterLock parent, bool isWriteLock)
 {
     this.parent      = parent;
     this.isWriteLock = isWriteLock;
 }
示例#2
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public AsyncMutex()
 {
     this.rwLock = new AsyncReaderWriterLock();
 }