Share via


SyncLockT Class

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

template <
   typename SyncTraits
>
class SyncLockT;

Parameters

  • SyncTraits
    The type that can take ownership of a resource.

Remarks

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

The SyncLockT class is used, for example, to help implement the SRWLock class.

Members

Public Constructors

Name

Description

SyncLockT::SyncLockT Constructor

Initializes a new instance of the SyncLockT class.

SyncLockT::~SyncLockT Destructor

Deinitializes an instance of the SyncLockT class.

Protected Constructors

Name

Description

SyncLockT::SyncLockT Constructor

Initializes a new instance of the SyncLockT class.

Public Methods

Name

Description

SyncLockT::IsLocked Method

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

SyncLockT::Unlock Method

Releases control of the resource held by the current SyncLockT object, if any.

Protected Data Members

Name

Description

SyncLockT::sync_ Data Member

Holds the underlying resource represented by the SyncLockT class.

Inheritance Hierarchy

SyncLockT

Requirements

Header: corewrappers.h

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

See Also

Reference

Microsoft::WRL::Wrappers::Details Namespace

SRWLock Class