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

A scoped shared mutex. More...

#include <scopedMutex.h>

+ Collaboration diagram for lunchbox::UniqueSharedLock< L >:

Public Member Functions

 UniqueSharedLock (L &lock)
 
 UniqueSharedLock (L *lock)
 
template<typename LB >
 UniqueSharedLock (const LB &lockable)
 
 ~UniqueSharedLock ()
 Destruct the scoped mutex and unset the mutex. More...
 

Detailed Description

template<class L>
class lunchbox::UniqueSharedLock< L >

A scoped shared 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 35 of file scopedMutex.h.

Constructor & Destructor Documentation

template<class L >
lunchbox::UniqueSharedLock< L >::~UniqueSharedLock ( )
inline

Destruct the scoped mutex and unset the mutex.

Version
1.0

Definition at line 58 of file scopedMutex.h.


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