Botan  2.8.0
Crypto and TLS for C++11
Public Member Functions | List of all members
Botan::lock_guard< Mutex > Class Template Referencefinal

#include <mutex.h>

Public Member Functions

 lock_guard (Mutex &m)
 
 lock_guard (const lock_guard &other)=delete
 
lock_guardoperator= (const lock_guard &other)=delete
 
 ~lock_guard ()
 

Detailed Description

template<typename Mutex>
class Botan::lock_guard< Mutex >

Definition at line 30 of file mutex.h.

Constructor & Destructor Documentation

◆ lock_guard() [1/2]

template<typename Mutex>
Botan::lock_guard< Mutex >::lock_guard ( Mutex &  m)
inlineexplicit

Definition at line 33 of file mutex.h.

33  : m_mutex(m)
34  { m_mutex.lock(); }

◆ ~lock_guard()

template<typename Mutex>
Botan::lock_guard< Mutex >::~lock_guard ( )
inline

Definition at line 36 of file mutex.h.

36 { m_mutex.unlock(); }

◆ lock_guard() [2/2]

template<typename Mutex>
Botan::lock_guard< Mutex >::lock_guard ( const lock_guard< Mutex > &  other)
delete

Member Function Documentation

◆ operator=()

template<typename Mutex>
lock_guard& Botan::lock_guard< Mutex >::operator= ( const lock_guard< Mutex > &  other)
delete

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