Share via


Mutex Class

Represents a synchronization object that exclusively controls a shared resource.

class Mutex : public HandleT<HandleTraits::MutexTraits>

Members

Public Typedefs

Name

Description

SyncLock

A synonym for a class that supports synchronous locks.

Public Constructor

Name

Description

Mutex::Mutex Constructor

Initializes a new instance of the Mutex class.

Public Members

Name

Description

Mutex::Lock Method

Waits until the current object, or the Mutex object associated with the specified handle, releases the mutex or the specified time-out interval has elapsed.

Public Operator

Name

Description

Mutex::operator= Operator

Assigns (moves) the specified Mutex object to the current Mutex object.

Inheritance Hierarchy

Mutex

Requirements

Header: corewrappers.h

Namespace: Microsoft::WRL::Wrappers

See Also

Reference

Microsoft::WRL::Wrappers Namespace