Kea  1.9.9-git
cfg_multi_threading.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 CFG_MULTI_THREADING_H
8 #define CFG_MULTI_THREADING_H
9 
10 #include <cc/data.h>
11 
12 namespace isc {
13 namespace dhcp {
14 
17 public:
18 
22  static void apply(data::ConstElementPtr value);
23 
30  static void extract(data::ConstElementPtr value, bool& enabled,
31  uint32_t& thread_count, uint32_t& queue_size);
32 };
33 
34 } // namespace dhcp
35 } // namespace isc
36 
37 #endif // CFG_MULTI_THREADING_H
static void extract(data::ConstElementPtr value, bool &enabled, uint32_t &thread_count, uint32_t &queue_size)
extract multi threading parameters
static void apply(data::ConstElementPtr value)
apply multi threading configuration
Utility class to apply multi threading configurations.
boost::shared_ptr< const Element > ConstElementPtr
Definition: data.h:23
Defines the logger used by the top-level component of kea-dhcp-ddns.