/// <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; }
/// <summary> /// Constructor. /// </summary> public AsyncMutex() { this.rwLock = new AsyncReaderWriterLock(); }