Botan 3.6.1
Crypto and TLS for C&
Botan::lock_guard< Mutex > Class Template Referencefinal

#include <mutex.h>

Public Member Functions

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

Detailed Description

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

Definition at line 41 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 43 of file mutex.h.

43: m_mutex(m) { m_mutex.lock(); }

◆ ~lock_guard()

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

Definition at line 45 of file mutex.h.

45{ 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: