Share via


CriticalSectionTraits Structure

 

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 CriticalSectionTraits Structure.

Specializes a CriticalSection object to support either an invalid critical section or a function to release a critical section.

Syntax

struct CriticalSectionTraits;  

Members

Public Typedefs

Name Description
Type A typedef that defines a pointer to a critical section. Type is defined as typedef CRITICAL_SECTION* Type;.

Public Methods

Name Description
CriticalSectionTraits::GetInvalidValue Method Specializes a CriticalSection template so that the template is always invalid.
CriticalSectionTraits::Unlock Method Specializes a CriticalSection template so that it supports releasing ownership of the specified critical section object.

Inheritance Hierarchy

CriticalSectionTraits

Requirements

Header: corewrappers.h

Namespace: Microsoft::WRL::Wrappers::HandleTraits

See Also

Microsoft::WRL::Wrappers::HandleTraits Namespace