Kea 2.7.5
isc::test::MultiThreadingTest Class Reference

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).
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ MultiThreadingTest()

isc::test::MultiThreadingTest::MultiThreadingTest ( bool mode = true)
inline

Constructor (set multi threading mode).

Parameters
modeThe 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().

+ Here is the call graph for this function:

◆ ~MultiThreadingTest()

isc::test::MultiThreadingTest::~MultiThreadingTest ( )
inline

Destructor (disable multi threading).

Definition at line 30 of file multi_threading_utils.h.

References isc::util::MultiThreadingMgr::instance().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: