VLink 2.0.0
A high-performance communication middleware
载入中...
搜索中...
未找到
vlink::ObjectPool< T >::Stats结构体 参考final

Snapshot of pool statistics at a point in time. 更多...

#include <object_pool.h>

vlink::ObjectPool< T >::Stats 的协作图:

Public 属性

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.

详细描述

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

Snapshot of pool statistics at a point in time.

类成员变量说明

◆ 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).


该结构体的文档由以下文件生成: