Lunchbox  1.16.0
Multi-threaded C++ toolbox library for all application developers creating high-performance multi-threaded programs.
lunchbox::UniqueLock< L > Class Template Reference

A scoped mutex. More...

#include <scopedMutex.h>

+ Inheritance diagram for lunchbox::UniqueLock< L >:
+ Collaboration diagram for lunchbox::UniqueLock< L >:

Public Member Functions

 UniqueLock (L *lock_)
 
 UniqueLock (L &lock_)
 
template<typename LB >
 UniqueLock (const LB &lockable)
 

Detailed Description

template<class L>
class lunchbox::UniqueLock< L >

A scoped mutex.

The mutex is automatically set upon creation, and released when the scoped mutex is destroyed, e.g., when the scope is left. The scoped mutex does nothing if a nullptr for the lock is passed.

Definition at line 82 of file scopedMutex.h.


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