HMutexOOC::LockGuard Class Reference

#include <HMutexOOC.h>

Public Member Functions

 LockGuard (HMutexOOC &mutex)
 
 ~LockGuard ()
 

Detailed Description

LockGuard locks a HMutexOOC instance until the LockGuard is destructed.

Constructor & Destructor Documentation

◆ LockGuard()

HMutexOOC::LockGuard::LockGuard ( HMutexOOC mutex)
inline

Locks the input mutex.

Parameters
mutexThe mutex to lock for the lifetime of LockGuard.

References HMutexOOC::Lock().

◆ ~LockGuard()

HMutexOOC::LockGuard::~LockGuard ( )
inline

Unlocks the mutex locked by the LockGuard constructor.

References HMutexOOC::Unlock().


The documentation for this class was generated from the following file: