AsyncReaderWriterLock.LockHandle Struct

Definition

A "public" representation of a specific lock.

C++/WinRT
struct AsyncReaderWriterLock::LockHandle
Inheritance
AsyncReaderWriterLock.LockHandle
Attributes

Properties

Data

Gets or sets some object associated to this specific lock.

Flags

Gets the flags that were passed into this lock.

HasReadLock

Gets a value indicating whether this lock is an active read lock or is nested by one.

HasUpgradeableReadLock

Gets a value indicating whether this lock is an active upgradeable read lock or is nested by one.

HasWriteLock

Gets a value indicating whether this lock is an active write lock or is nested by one.

IsActive

Gets a value indicating whether this lock is still active.

IsReadLock

Gets a value indicating whether this lock represents a read lock.

IsUpgradeableReadLock

Gets a value indicating whether this lock represents an upgradeable read lock.

IsValid

Gets a value indicating whether this handle is to a lock which was actually acquired.

IsWriteLock

Gets a value indicating whether this lock represents a write lock.

NestingLock

Gets the lock within which this lock was acquired.

Applies to

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

Thread Safety

This type is thread-safe for all members.