![]() |
XRootD
|
#include <XrdBuffer.hh>
Public Member Functions | |
XrdBuffManager (int minrst=20 *60) | |
~XrdBuffManager () | |
void | Init () |
int | MaxSize () |
XrdBuffer * | Obtain (int bsz) |
int | Recalc (int bsz) |
void | Release (XrdBuffer *bp) |
void | Reshape () |
void | Set (int maxmem=-1, int minw=-1) |
int | Stats (char *buff, int blen, int do_sync=0) |
Definition at line 71 of file XrdBuffer.hh.
XrdBuffManager::XrdBuffManager | ( | int | minrst = 20*60 | ) |
Definition at line 78 of file XrdBuffer.cc.
XrdBuffManager::~XrdBuffManager | ( | ) |
void XrdBuffManager::Init | ( | ) |
Definition at line 124 of file XrdBuffer.cc.
References XrdSysError::Emsg(), XrdGlobal::Log, XrdSysThread::Run(), and XrdReshaper().
|
inline |
Definition at line 83 of file XrdBuffer.hh.
Referenced by XrdXrootdProtocol::Configure().
XrdBuffer * XrdBuffManager::Obtain | ( | int | bsz | ) |
Definition at line 140 of file XrdBuffer.cc.
References XrdSysCondVar::Lock(), XrdOucUtils::Log2(), XrdBuffXL::Obtain(), XrdSysCondVar::Signal(), XrdSysCondVar::UnLock(), and XrdGlobal::xlBuff.
Referenced by XrdXrootdAioBuff::Alloc(), XrdXrootdAioPgrw::Alloc(), XrdHttpProtocol::Match(), XrdXrootdProtocol::Process(), and XrdXrootdProtocol::Swap().
int XrdBuffManager::Recalc | ( | int | bsz | ) |
Definition at line 195 of file XrdBuffer.cc.
References XrdOucUtils::Log2(), XrdBuffXL::Recalc(), and XrdGlobal::xlBuff.
void XrdBuffManager::Release | ( | XrdBuffer * | bp | ) |
Definition at line 221 of file XrdBuffer.cc.
References XrdSysCondVar::Lock(), XrdBuffXL::Release(), XrdSysCondVar::UnLock(), and XrdGlobal::xlBuff.
Referenced by XrdXrootdAioPgrw::~XrdXrootdAioPgrw(), XrdXrootdProtocol::Process(), XrdXrootdProtocol::Reclaim(), and XrdXrootdAioBuff::Recycle().
void XrdBuffManager::Reshape | ( | ) |
Definition at line 242 of file XrdBuffer.cc.
References XrdSysCondVar::Lock(), TRACE, XrdBuffXL::Trim(), XrdSysCondVar::UnLock(), XrdSysCondVar::Wait(), XrdSysTimer::Wait(), XrdGlobal::xlBuff, and XRD_BUCKETS.
Referenced by XrdReshaper().
void XrdBuffManager::Set | ( | int | maxmem = -1 , |
int | minw = -1 |
||
) |
Definition at line 308 of file XrdBuffer.cc.
References XrdSysCondVar::Lock(), and XrdSysCondVar::UnLock().
int XrdBuffManager::Stats | ( | char * | buff, |
int | blen, | ||
int | do_sync = 0 |
||
) |
Definition at line 323 of file XrdBuffer.cc.
References XrdSysCondVar::Lock(), XrdBuffXL::Stats(), XrdSysCondVar::UnLock(), and XrdGlobal::xlBuff.