#include <XrdMonCtrBuffer.hh>
Public Member Functions | |
void | push_back (XrdMonCtrPacket *p) |
XrdMonCtrPacket * | pop_front () |
void | printList (const char *) |
Static Public Member Functions | |
static XrdMonCtrBuffer * | instance () |
Private Member Functions | |
XrdMonCtrBuffer () | |
void | collectStats () |
Private Attributes | |
Elem * | _head |
Elem * | _tail |
int | _noElems |
XrdSysMutex | _mutex |
XrdSysCondVar | _cond |
int | _max |
int | _aver |
int | _noKInAver |
int | _last1Kmax |
int | _last1Ktotal |
int | _counter1K |
Static Private Attributes | |
static XrdMonCtrBuffer * | _instance |
Classes | |
struct | Elem |
Definition at line 24 of file XrdMonCtrBuffer.hh.
XrdMonCtrBuffer::XrdMonCtrBuffer | ( | ) | [private] |
XrdMonCtrBuffer * XrdMonCtrBuffer::instance | ( | ) | [static] |
Definition at line 39 of file XrdMonCtrBuffer.cc.
References _instance, and XrdMonCtrBuffer().
Referenced by XrdMonCtrArchiver::operator()(), and receivePackets().
void XrdMonCtrBuffer::push_back | ( | XrdMonCtrPacket * | p | ) |
Definition at line 47 of file XrdMonCtrBuffer.cc.
References _cond, _head, _mutex, _noElems, _tail, XrdSysMutexHelper::Lock(), XrdMonCtrBuffer::Elem::next, p, and XrdSysCondVar::Signal().
Referenced by receivePackets().
XrdMonCtrPacket * XrdMonCtrBuffer::pop_front | ( | ) |
Definition at line 62 of file XrdMonCtrBuffer.cc.
References _cond, _head, _mutex, _noElems, _tail, collectStats(), XrdSysMutexHelper::Lock(), XrdMonCtrBuffer::Elem::next, p, XrdMonCtrBuffer::Elem::packet, and XrdSysCondVar::Wait().
Referenced by XrdMonCtrArchiver::operator()().
void XrdMonCtrBuffer::printList | ( | const char * | ) |
Definition at line 92 of file XrdMonCtrBuffer.cc.
References _head, XrdMonCtrDebug::_mutex, _noElems, _tail, XrdSysMutexHelper::Lock(), XrdMonCtrBuffer::Elem::next, and XrdMonCtrBuffer::Elem::packet.
void XrdMonCtrBuffer::collectStats | ( | ) | [private] |
Definition at line 106 of file XrdMonCtrBuffer.cc.
References _aver, _counter1K, _last1Kmax, _last1Ktotal, _max, XrdMonCtrDebug::_mutex, _noElems, _noKInAver, and XrdSysMutexHelper::Lock().
Referenced by pop_front().
Elem* XrdMonCtrBuffer::_head [private] |
Definition at line 42 of file XrdMonCtrBuffer.hh.
Referenced by pop_front(), printList(), and push_back().
Elem* XrdMonCtrBuffer::_tail [private] |
Definition at line 43 of file XrdMonCtrBuffer.hh.
Referenced by pop_front(), printList(), and push_back().
int XrdMonCtrBuffer::_noElems [private] |
Definition at line 44 of file XrdMonCtrBuffer.hh.
Referenced by collectStats(), pop_front(), printList(), and push_back().
XrdSysMutex XrdMonCtrBuffer::_mutex [private] |
XrdSysCondVar XrdMonCtrBuffer::_cond [private] |
int XrdMonCtrBuffer::_max [private] |
int XrdMonCtrBuffer::_aver [private] |
int XrdMonCtrBuffer::_noKInAver [private] |
int XrdMonCtrBuffer::_last1Kmax [private] |
int XrdMonCtrBuffer::_last1Ktotal [private] |
int XrdMonCtrBuffer::_counter1K [private] |
XrdMonCtrBuffer * XrdMonCtrBuffer::_instance [static, private] |