diff options
author | Razvan Becheriu <razvan@isc.org> | 2020-04-02 18:49:27 +0200 |
---|---|---|
committer | Razvan Becheriu <razvan@isc.org> | 2020-04-14 21:20:29 +0200 |
commit | 0ab220a3e31b29da97ee628ddbc8423e87c558f7 (patch) | |
tree | 4542402068de42b527679874f842642db535dfed /src/lib/dhcpsrv/srv_config.h | |
parent | [#1005] Improved doxygen comments (diff) | |
download | kea-0ab220a3e31b29da97ee628ddbc8423e87c558f7.tar.xz kea-0ab220a3e31b29da97ee628ddbc8423e87c558f7.zip |
[#893] added multi-threading parameters
Diffstat (limited to '')
-rw-r--r-- | src/lib/dhcpsrv/srv_config.h | 57 |
1 files changed, 37 insertions, 20 deletions
diff --git a/src/lib/dhcpsrv/srv_config.h b/src/lib/dhcpsrv/srv_config.h index 3107ffeb2e..81308f495c 100644 --- a/src/lib/dhcpsrv/srv_config.h +++ b/src/lib/dhcpsrv/srv_config.h @@ -705,32 +705,46 @@ public: return (dhcp4o6_port_); } - /// @brief Sets the server thread count. + /// @brief Sets the enable multi threading flag. /// - /// @param threads value of the server thread count - void setServerThreadCount(uint32_t threads) { - server_threads_ = threads; + /// @param size value of the enable multi threading flag + void setEnableMultiThreading(bool enabled) { + enable_multi_threading_ = enabled; } - /// @brief Retrieves the server thread count. + /// @brief Retrieves the enable multi threading flag. /// - /// @return value of the server thread count - uint32_t getServerThreadCount() const { - return (server_threads_); + /// @return value of the enable multi threading flag + uint32_t getEnableMultiThreading() const { + return (enable_multi_threading_); } - /// @brief Sets the server max thread queue size. + /// @brief Sets the packet thread pool size. /// - /// @param size max thread queue size - void setServerMaxThreadQueueSize(uint32_t size) { - server_max_thread_queue_size_ = size; + /// @param size value of the packet thread pool size + void setPktThreadPoolSize(uint32_t size) { + pkt_thread_pool_size_ = size; } - /// @brief Retrieves the server max thread queue size. + /// @brief Retrieves the packet thread pool size. /// - /// @return value of the max thread queue size - uint32_t getServerMaxThreadQueueSize() const { - return (server_max_thread_queue_size_); + /// @return value of the packet thread pool size + uint32_t getPktThreadPoolSize() const { + return (pkt_thread_pool_size_); + } + + /// @brief Sets the packet thread queue size. + /// + /// @param size value of the packet thread queue size + void setPktThreadQueueSize(uint32_t size) { + pkt_thread_queue_size_ = size; + } + + /// @brief Retrieves the packet thread queue size. + /// + /// @return value of the packet thread queue size + uint32_t getPktThreadQueueSize() const { + return (pkt_thread_queue_size_); } /// @brief Returns pointer to the D2 client configuration @@ -951,11 +965,14 @@ private: /// this socket is bound and connected to this port and port + 1 uint16_t dhcp4o6_port_; - /// @brief The server thread count. - uint32_t server_threads_; + /// @brief The enable multi threading flag. + bool enable_multi_threading_; + + /// @brief The packet thread pool size. + uint32_t pkt_thread_pool_size_; - /// @brief The server max thread queue size. - uint32_t server_max_thread_queue_size_; + /// @brief The packet thread queue size. + uint32_t pkt_thread_queue_size_; /// @brief Stores D2 client configuration D2ClientConfigPtr d2_client_config_; |