Nito.AsyncEx.AsyncReaderWriterLock
A reader/writer lock that is compatible with async. Note that this lock is not recursive!
Gets a semi-unique identifier for this asynchronous lock.
public AsyncReaderWriterLock(IAsyncWaitQueue<IDisposable> writerQueue, IAsyncWaitQueue<IDisposable> readerQueue)
Creates a new async-compatible reader/writer lock.
public AsyncReaderWriterLock()
Creates a new async-compatible reader/writer lock.
Synchronously acquires the lock as a reader. Returns a disposable that releases the lock when disposed. This method may block the calling thread.
Synchronously acquires the lock as a reader. Returns a disposable that releases the lock when disposed. This method may block the calling thread.
Asynchronously acquires the lock as a reader. Returns a disposable that releases the lock when disposed.
Asynchronously acquires the lock as a reader. Returns a disposable that releases the lock when disposed.
Synchronously acquires the lock as a writer. Returns a disposable that releases the lock when disposed. This method may block the calling thread.
Asynchronously acquires the lock as a writer. Returns a disposable that releases the lock when disposed. This method may block the calling thread.
Asynchronously acquires the lock as a writer. Returns a disposable that releases the lock when disposed.
Asynchronously acquires the lock as a writer. Returns a disposable that releases the lock when disposed.