![]() |
Kea 2.2.0
|
RAII lock object to protect the code in the same scope with a mutex. More...
#include <multi_threading_mgr.h>
Public Member Functions | |
| MultiThreadingLock (std::mutex &mutex) | |
| Constructor locks the mutex if multi-threading is enabled. More... | |
RAII lock object to protect the code in the same scope with a mutex.
Definition at line 330 of file multi_threading_mgr.h.
| isc::util::MultiThreadingLock::MultiThreadingLock | ( | std::mutex & | mutex | ) |
Constructor locks the mutex if multi-threading is enabled.
The lock is automatically unlocked in the default destructor.
| mutex | the mutex to be locked |
Definition at line 230 of file multi_threading_mgr.cc.
References isc::util::MultiThreadingMgr::instance().
Here is the call graph for this function: