![]() |
Kea 2.7.3
|
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. | |
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 240 of file multi_threading_mgr.cc.
References isc::util::MultiThreadingMgr::instance().