xrootd
|
Pool of buffer for caching writes. More...
#include <XrdEcWrtBuff.hh>
Public Member Functions | |
XrdCl::Buffer | Create (const ObjCfg &objcfg) |
Create now buffer (or recycle existing one) | |
void | Recycle (XrdCl::Buffer &&buffer) |
Give back a buffer to the poool. | |
Static Public Member Functions | |
static BufferPool & | Instance () |
Singleton access to the object. | |
Private Member Functions | |
BufferPool () | |
BufferPool (const BufferPool &)=delete | |
BufferPool (BufferPool &&)=delete | |
BufferPool & | operator= (const BufferPool &)=delete |
BufferPool & | operator= (BufferPool &&)=delete |
Private Attributes | |
const size_t | totalsize |
size_t | currentsize |
std::condition_variable | cv |
std::mutex | mtx |
std::queue< XrdCl::Buffer > | pool |
Pool of buffer for caching writes.
|
inlineprivate |
|
privatedelete |
|
privatedelete |
|
inline |
Create now buffer (or recycle existing one)
References XrdEc::ObjCfg::blksize, currentsize, cv, mtx, pool, and totalsize.
|
inlinestatic |
Singleton access to the object.
Referenced by XrdEc::WrtBuff::~WrtBuff().
|
privatedelete |
|
privatedelete |
|
inline |
Give back a buffer to the poool.
Referenced by XrdEc::WrtBuff::~WrtBuff().
|
private |
Referenced by Create().
|
private |
|
private |
Referenced by Create().