AsyncReaderWriterLock.OnBeforeLockReleasedAsync Method

Definition

Fired when any lock is being released.

C++
protected:
 virtual System::Threading::Tasks::Task ^ OnBeforeLockReleasedAsync(bool exclusiveLockRelease, Microsoft::VisualStudio::Threading::AsyncReaderWriterLock::LockHandle releasingLock);

Parameters

exclusiveLockRelease
Boolean

true if the last write lock that the caller holds is being released; false otherwise.

releasingLock
AsyncReaderWriterLock.LockHandle

The lock being released.

Returns

A task whose completion signals the conclusion of the asynchronous operation.

Applies to

Proizvod Verzije
Visual Studio SDK 2015, 2017, 2019, 2022