Share via


SyncLockWithStatusT Class

Supports the WRL infrastructure and is not intended to be used directly from your code.

template <
   typename SyncTraits
>
class SyncLockWithStatusT : public SyncLockT<SyncTraits>;

Parameters

  • SyncTraits
    A type that can take exclusive or shared ownership of a resource.

Remarks

Represents a type that can take exclusive or shared ownership of a resource.

The SyncLockWithStatusT class is used to implement the Mutex and Semaphore classes.

Members

Public Constructors

Name

Description

SyncLockWithStatusT::SyncLockWithStatusT Constructor

Initializes a new instance of the SyncLockWithStatusT class.

Protected Constructors

Name

Description

SyncLockWithStatusT::SyncLockWithStatusT Constructor

Initializes a new instance of the SyncLockWithStatusT class.

Public Methods

Name

Description

SyncLockWithStatusT::GetStatus Method

Retrieves the wait status of the current SyncLockWithStatusT object.

SyncLockWithStatusT::IsLocked Method

Indicates whether the current SyncLockWithStatusT object owns a resource; that is, the SyncLockWithStatusT object is locked.

Protected Data Members

Name

Description

SyncLockWithStatusT::status_ Data Member

Holds the result of the underlying wait operation after a lock operation on an object based on the current SyncLockWithStatusT object.

Inheritance Hierarchy

SyncLockT

SyncLockWithStatusT

Requirements

Header: corewrappers.h

Namespace: Microsoft::WRL::Wrappers::Details

See Also

Reference

Microsoft::WRL::Wrappers::Details Namespace