tenno 0.1.0
Loading...
Searching...
No Matches
tenno::lock_guard< M > Class Template Reference

A simple lock guard implementation. More...

#include <mutex.hpp>

Public Member Functions

 lock_guard (M &m)
 
 ~lock_guard ()
 
void operator= (const lock_guard &)=delete
 

Detailed Description

template<typename M>
class tenno::lock_guard< M >

A simple lock guard implementation.

Template Parameters
MThe type of the mutex to guard

Locks the mutex in the constructor and unlocks it in the destructor.

Definition at line 125 of file mutex.hpp.

Constructor & Destructor Documentation

◆ lock_guard()

template<typename M >
tenno::lock_guard< M >::lock_guard ( M & m)
inlineexplicit

Definition at line 128 of file mutex.hpp.

◆ ~lock_guard()

template<typename M >
tenno::lock_guard< M >::~lock_guard ( )
inline

Definition at line 133 of file mutex.hpp.

Member Function Documentation

◆ operator=()

template<typename M >
void tenno::lock_guard< M >::operator= ( const lock_guard< M > & )
delete

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