VLink 2.0.0
A high-performance communication middleware
Loading...
Searching...
No Matches
vlink::ObjectPool< T >::Stats Struct Referencefinal

Snapshot of pool statistics at a point in time. More...

#include <object_pool.h>

Collaboration diagram for vlink::ObjectPool< T >::Stats:

Public Attributes

size_t pool_size {0}
 Number of objects currently idle in the pool.
size_t borrowed {0}
 Number of objects currently held by callers.
size_t total_created {0}
 Total objects ever created (pool_size + borrowed + destroyed).
size_t max_size {0}
 Maximum allowed total objects. 0 means unlimited.

Detailed Description

template<typename T>
struct vlink::ObjectPool< T >::Stats

Snapshot of pool statistics at a point in time.

Member Data Documentation

◆ borrowed

template<typename T>
size_t vlink::ObjectPool< T >::Stats::borrowed {0}

Number of objects currently held by callers.

◆ max_size

template<typename T>
size_t vlink::ObjectPool< T >::Stats::max_size {0}

Maximum allowed total objects. 0 means unlimited.

◆ pool_size

template<typename T>
size_t vlink::ObjectPool< T >::Stats::pool_size {0}

Number of objects currently idle in the pool.

◆ total_created

template<typename T>
size_t vlink::ObjectPool< T >::Stats::total_created {0}

Total objects ever created (pool_size + borrowed + destroyed).


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