Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
Loading...
Searching...
No Matches
kcenon::logger::memory::object_pool< T >::config Struct Reference

Configuration for object pool. More...

#include <object_pool.h>

Collaboration diagram for kcenon::logger::memory::object_pool< T >::config:
Collaboration graph

Public Member Functions

 config ()=default
 

Public Attributes

size_t initial_size {100}
 Initial pool size.
 
size_t max_size {10000}
 Maximum pool size.
 
bool allow_growth {true}
 Allow pool to grow beyond initial size.
 

Detailed Description

template<typename T>
struct kcenon::logger::memory::object_pool< T >::config

Configuration for object pool.

Definition at line 34 of file object_pool.h.

Constructor & Destructor Documentation

◆ config()

template<typename T >
kcenon::logger::memory::object_pool< T >::config::config ( )
default

Member Data Documentation

◆ allow_growth

template<typename T >
bool kcenon::logger::memory::object_pool< T >::config::allow_growth {true}

Allow pool to grow beyond initial size.

Definition at line 37 of file object_pool.h.

37{true};

Referenced by kcenon::logger::memory::object_pool< T >::acquire().

◆ initial_size

template<typename T >
size_t kcenon::logger::memory::object_pool< T >::config::initial_size {100}

Initial pool size.

Definition at line 35 of file object_pool.h.

35{100};

Referenced by kcenon::logger::memory::object_pool< T >::initialize_pool().

◆ max_size

template<typename T >
size_t kcenon::logger::memory::object_pool< T >::config::max_size {10000}

Maximum pool size.

Definition at line 36 of file object_pool.h.

36{10000};

Referenced by kcenon::logger::memory::object_pool< T >::acquire(), and kcenon::logger::memory::object_pool< T >::release().


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