Share via


SyncLockT Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at SyncLockT Class.

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

Syntax

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

Microsoft::WRL::Wrappers::Details Namespace
SRWLock Class