Share via


CriticalSectionTraits Structure

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

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

Reference

Microsoft::WRL::Wrappers::HandleTraits Namespace