#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.
References XRD_BUCKETS, and XRD_BUSHIFT.
| XrdBuffManager::~XrdBuffManager | ( | ) |
Definition at line 107 of file XrdBuffer.cc.
References XRD_BUCKETS.
| 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 XrdBuffer::XrdBuffer(), XrdOucUtils::Log2(), XrdBuffXL::Obtain(), 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 XrdBuffXL::Release(), 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 TRACE, XrdBuffXL::Trim(), 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.
| int XrdBuffManager::Stats | ( | char * | buff, |
| int | blen, | ||
| int | do_sync = 0 ) |
Definition at line 323 of file XrdBuffer.cc.
References XrdBuffXL::Stats(), and XrdGlobal::xlBuff.