Kea 2.7.6
|
A RAII class which disables the multi threading on exit of scope. More...
#include <multi_threading_utils.h>
Public Member Functions | |
MultiThreadingTest (bool mode=true) | |
Constructor (set multi threading mode). | |
~MultiThreadingTest () | |
Destructor (disable multi threading). | |
A RAII class which disables the multi threading on exit of scope.
Usually the multi threading is disabled by the fixture destructor or TearDown but of course this works only when a fixture class is used.
Definition at line 19 of file multi_threading_utils.h.
|
inline |
Constructor (set multi threading mode).
mode | The mode to use in the body. Defaults to true / enabled. |
Definition at line 25 of file multi_threading_utils.h.
References isc::util::MultiThreadingMgr::instance(), and isc::util::MultiThreadingMgr::setMode().
|
inline |
Destructor (disable multi threading).
Definition at line 30 of file multi_threading_utils.h.
References isc::util::MultiThreadingMgr::instance(), and isc::util::MultiThreadingMgr::setMode().