Sese Framework
x.y.z
A cross-platform framework
|
对象池 更多...
#include <ObjectPool.h>
Public 类型 | |
using | Ptr = std::shared_ptr<ObjectPool<T>> |
using | ObjectPtr = std::shared_ptr<T> |
Public 成员函数 | |
~ObjectPool () override | |
auto | borrow () noexcept |
Public 成员函数 继承自 sese::Noncopyable | |
Noncopyable ()=default | |
virtual | ~Noncopyable ()=default |
Noncopyable (const Noncopyable &)=delete | |
删除拷贝相关构造函数 | |
Noncopyable & | operator= (const Noncopyable &)=delete |
删除拷贝相关构造函数 | |
静态 Public 成员函数 | |
static ObjectPool::Ptr | create () noexcept |
Private 成员函数 | |
ObjectPool ()=default | |
静态 Private 成员函数 | |
static void | recycleCallback (const std::weak_ptr< ObjectPool > &wk_pool, T *to_recycle) noexcept |
Private 属性 | |
std::mutex | mutex |
std::queue< T * > | queue |
对象池
T | 复用对象 |
using sese::ObjectPool< T >::ObjectPtr = std::shared_ptr<T> |
using sese::ObjectPool< T >::Ptr = std::shared_ptr<ObjectPool<T>> |
|
inlineoverride |
|
privatedefault |
|
inlinenoexcept |
|
inlinestaticnoexcept |
|
inlinestaticprivatenoexcept |
被这些函数引用 sese::ObjectPool< T >::borrow().
|
private |
被这些函数引用 sese::ObjectPool< T >::borrow().
|
private |