My Project
Public Member Functions | List of all members
Lock Class Reference

Lock for simplifying mutex handling. More...

#include <Lock.h>

Inheritance diagram for Lock:
Uncopyable

Public Member Functions

 Lock (Mutex *mutex)
 Constructor. More...
 
 ~Lock ()
 Destructor.
 

Detailed Description

Lock for simplifying mutex handling.

Lock class for simplifying mutex handling. Simply pass a mutex to the constructor and the mutex will be locked. When the lock is destroyed, the mutex will be unlocked.

Definition at line 46 of file Lock.h.

Constructor & Destructor Documentation

◆ Lock()

Lock ( Mutex mutex)
inline

Constructor.

Parameters
mutexThe mutex to lock.

Definition at line 54 of file Lock.h.


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