HMutexOOC

Types

LockGuard

Functions

HMutexOOC
~HMutexOOC
void Lock
void Unlock

Detailed Description

class HMutexOOC

The HMutexOOC class represents a mutex.

Public Functions

HMutexOOC()

Creates an unlocked mutex.

~HMutexOOC()
void Lock()

Locks the mutex.

void Unlock()

Unlocks the mutex.

class LockGuard

LockGuard locks a HMutexOOC instance until the LockGuard is destructed.

Public Functions

inline LockGuard(HMutexOOC &mutex)

Locks the input mutex.

Parameters:mutex – The mutex to lock for the lifetime of LockGuard.
inline ~LockGuard()

Unlocks the mutex locked by the LockGuard constructor.