AsyncReaderWriterResourceLock<TMoniker,TResource>.ResourceAwaiter Struct

Definition

Manages asynchronous access to a lock.

C++
public:  where TResource : classvalue class AsyncReaderWriterResourceLock<TMoniker, TResource>::ResourceAwaiter : System::Runtime::CompilerServices::INotifyCompletion
C++
public:  where TResource : classvalue class AsyncReaderWriterResourceLock<TMoniker, TResource>::ResourceAwaiter : System::Runtime::CompilerServices::ICriticalNotifyCompletion

Type Parameters

TMoniker
TResource
Inheritance
AsyncReaderWriterResourceLock<TMoniker,TResource>.ResourceAwaiter
Attributes
Implements

Properties

IsCompleted

Gets a value indicating whether the lock has been issued.

Methods

GetResult()

Applies the issued lock to the caller and returns the value used to release the lock.

OnCompleted(Action)

Sets the delegate to execute when the lock is available.

UnsafeOnCompleted(Action)

Sets the delegate to execute when the lock is available.

Applies to

Produkt Verzie
Visual Studio SDK 2015, 2017, 2019, 2022

Thread Safety

This type is thread-safe for all members.