Share via


AsyncReaderWriterLock.LockStackContains Method

Definition

Checks whether the aggregated flags from all locks in the lock stack satisfy the specified flag(s).

protected:
 bool LockStackContains(Microsoft::VisualStudio::Threading::AsyncReaderWriterLock::LockFlags flags, Microsoft::VisualStudio::Threading::AsyncReaderWriterLock::LockHandle handle);
bool LockStackContains(Microsoft::VisualStudio::Threading::AsyncReaderWriterLock::LockFlags flags, Microsoft::VisualStudio::Threading::AsyncReaderWriterLock::LockHandle handle);
protected bool LockStackContains (Microsoft.VisualStudio.Threading.AsyncReaderWriterLock.LockFlags flags, Microsoft.VisualStudio.Threading.AsyncReaderWriterLock.LockHandle handle);
member this.LockStackContains : Microsoft.VisualStudio.Threading.AsyncReaderWriterLock.LockFlags * Microsoft.VisualStudio.Threading.AsyncReaderWriterLock.LockHandle -> bool
Protected Function LockStackContains (flags As AsyncReaderWriterLock.LockFlags, handle As AsyncReaderWriterLock.LockHandle) As Boolean

Parameters

flags
AsyncReaderWriterLock.LockFlags

The flag(s) that must be specified for a true result.

handle
AsyncReaderWriterLock.LockHandle

The head of the lock stack to consider.

Returns

true if all the specified flags are found somewhere in the lock stack; false otherwise.

Applies to