Kea 2.6.0
cfg_multi_threading.h
Go to the documentation of this file.
1// Copyright (C) 2020-2023 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
12namespace isc {
13namespace dhcp {
14
17public:
18
22 static void apply(data::ConstElementPtr value);
23
35 static void extract(data::ConstElementPtr value, bool& enabled,
36 uint32_t& thread_count, uint32_t& queue_size);
37};
38
39} // namespace dhcp
40} // namespace isc
41
42#endif // CFG_MULTI_THREADING_H
Utility class to apply multi threading configurations.
static void apply(data::ConstElementPtr value)
apply multi threading configuration
static void extract(data::ConstElementPtr value, bool &enabled, uint32_t &thread_count, uint32_t &queue_size)
Extract multi-threading parameters from a given configuration.
boost::shared_ptr< const Element > ConstElementPtr
Definition: data.h:29
Defines the logger used by the top-level component of kea-lfc.