Kea  1.9.9-git
multi_threading_utils.h
Go to the documentation of this file.
1 // Copyright (C) 2020 Internet Systems Consortium, Inc. ("ISC")
2 //
3 // This Source Code Form is subject to the terms of the Mozilla Public
4 // License, v. 2.0. If a copy of the MPL was not distributed with this
5 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 
7 #ifndef MULTI_THREADING_UTILS_H
8 #define MULTI_THREADING_UTILS_H
9 
11 
12 namespace isc {
13 namespace test {
14 
20 public:
21 
25  MultiThreadingTest(bool mode = true) {
27  }
28 
32  }
33 };
34 
35 } // end of isc::test namespace
36 } // end of isc namespace
37 
38 #endif // MULTI_THREADING_UTILS_H
static MultiThreadingMgr & instance()
Returns a single instance of Multi Threading Manager.
MultiThreadingTest(bool mode=true)
Constructor (set multi threading mode).
void setMode(bool enabled)
Set the multi-threading mode.
Defines the logger used by the top-level component of kea-dhcp-ddns.
~MultiThreadingTest()
Destructor (disable multi threading).
A RAII class which disables the multi threading on exit of scope.