PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
kcenon::pacs::integration::thread_pool_config Struct Reference

Configuration options for the thread pool. More...

#include <thread_pool_interface.h>

Collaboration diagram for kcenon::pacs::integration::thread_pool_config:
Collaboration graph

Public Attributes

std::size_t min_threads = 2
 Minimum number of worker threads.
 
std::size_t max_threads = std::thread::hardware_concurrency()
 Maximum number of worker threads.
 
std::chrono::milliseconds idle_timeout {30000}
 Time before idle threads are terminated (for dynamic scaling)
 
bool use_lock_free_queue = true
 Enable lock-free queue for higher throughput.
 
std::string pool_name = "pacs_thread_pool"
 Thread pool name for logging.
 

Detailed Description

Configuration options for the thread pool.

Definition at line 53 of file thread_pool_interface.h.

Member Data Documentation

◆ idle_timeout

std::chrono::milliseconds kcenon::pacs::integration::thread_pool_config::idle_timeout {30000}

Time before idle threads are terminated (for dynamic scaling)

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/integration/thread_pool_interface.h.

Definition at line 61 of file thread_pool_interface.h.

61{30000};

◆ max_threads

std::size_t kcenon::pacs::integration::thread_pool_config::max_threads = std::thread::hardware_concurrency()

◆ min_threads

◆ pool_name

std::string kcenon::pacs::integration::thread_pool_config::pool_name = "pacs_thread_pool"

◆ use_lock_free_queue

bool kcenon::pacs::integration::thread_pool_config::use_lock_free_queue = true

Enable lock-free queue for higher throughput.

Examples
/home/runner/work/pacs_system/pacs_system/include/kcenon/pacs/integration/thread_pool_interface.h.

Definition at line 64 of file thread_pool_interface.h.


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