Network System 0.1.1
High-performance modular networking library for scalable client-server applications
Loading...
Searching...
No Matches
kcenon::network::config::thread_pool_config Struct Reference

Configuration for thread pool. More...

#include <network_config.h>

Collaboration diagram for kcenon::network::config::thread_pool_config:
Collaboration graph

Public Attributes

size_t worker_count = 0
 Number of worker threads (0 = auto-detect via hardware_concurrency)
 
size_t queue_capacity = 10000
 Maximum queue capacity.
 
std::string pool_name = "network_pool"
 Thread pool name.
 

Detailed Description

Configuration for thread pool.

Definition at line 38 of file network_config.h.

Member Data Documentation

◆ pool_name

std::string kcenon::network::config::thread_pool_config::pool_name = "network_pool"

Thread pool name.

Definition at line 46 of file network_config.h.

◆ queue_capacity

size_t kcenon::network::config::thread_pool_config::queue_capacity = 10000

Maximum queue capacity.

Definition at line 43 of file network_config.h.

◆ worker_count

size_t kcenon::network::config::thread_pool_config::worker_count = 0

Number of worker threads (0 = auto-detect via hardware_concurrency)

Definition at line 40 of file network_config.h.

Referenced by kcenon::network::config::network_config::development(), kcenon::network::config::network_config::production(), and kcenon::network::config::network_config::testing().


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