#include <mutex.h>
Mutex Holding Class for RAII
Definition at line 50 of file mutex.h.
◆ Mutex_Holder()
| Botan::Mutex_Holder::Mutex_Holder |
( |
Mutex * | m | ) |
|
|
inline |
Hold onto a mutex until we leave scope
- Parameters
-
Definition at line 57 of file mutex.h.
57 : mux(m)
58 {
59 if(!mux)
61 mux->lock();
62 }
std::invalid_argument Invalid_Argument
◆ ~Mutex_Holder()
| Botan::Mutex_Holder::~Mutex_Holder |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file: