#include <XrdCmsKey.hh>

Public Member Functions | |
| void | Recycle () |
| void | Reload () |
| XrdCmsKeyItem () | |
| ~XrdCmsKeyItem () | |
Static Public Member Functions | |
| static XrdCmsKeyItem * | Alloc (unsigned int theTock) |
| static int | Replenish () |
| static void | Stats (int &isAlloc, int &isFree, int &wasEmpty) |
| static XrdCmsKeyItem * | Unload (unsigned int theTock) |
| static XrdCmsKeyItem * | Unload (XrdCmsKeyItem *theItem) |
Public Attributes | |
| XrdCmsKeyLoc | Loc |
| XrdCmsKey | Key |
| XrdCmsKeyItem * | Next |
Static Public Attributes | |
| static const unsigned int | TickRate = 64 |
| static const unsigned int | TickMask = 63 |
| static const int | minAlloc = 4096 |
| static const int | minFree = 1024 |
Static Private Attributes | |
| static XrdCmsKeyItem * | TockTable [TickRate] = {0} |
| static XrdCmsKeyItem * | Free = 0 |
| static int | numFree = 0 |
| static int | numHave = 0 |
| static int | numNull = 0 |
| XrdCmsKeyItem::XrdCmsKeyItem | ( | ) | [inline] |
| XrdCmsKeyItem::~XrdCmsKeyItem | ( | ) | [inline] |
| XrdCmsKeyItem * XrdCmsKeyItem::Alloc | ( | unsigned int | theTock | ) | [static] |
References Free, Key, Loc, Next, numFree, numNull, XrdCmsKey::Ref, Replenish(), XrdCmsKeyLoc::roPend, XrdCmsKeyLoc::rwPend, Say, TickMask, TockTable, XrdCmsKey::TOD, and XrdCmsKey::TODRef.
Referenced by XrdCmsNash::Add(), and XrdCmsCache::Init().
| void XrdCmsKeyItem::Recycle | ( | ) |
References Free, XrdCmsKey::Hash, Key, Next, numFree, XrdCmsKey::Ref, and XrdCmsKey::Val.
Referenced by XrdCmsCache::Init(), and XrdCmsNash::Recycle().
| void XrdCmsKeyItem::Reload | ( | ) |
References Key, TickMask, TockTable, XrdCmsKey::TOD, and XrdCmsKey::TODRef.
| int XrdCmsKeyItem::Replenish | ( | ) | [static] |
| void XrdCmsKeyItem::Stats | ( | int & | isAlloc, | |
| int & | isFree, | |||
| int & | wasEmpty | |||
| ) | [static] |
References numFree, numHave, and numNull.
Referenced by XrdCmsCache::Recycle().
| XrdCmsKeyItem * XrdCmsKeyItem::Unload | ( | unsigned int | theTock | ) | [static] |
References XrdCmsKey::Hash, XrdCmsKeyLoc::HashSave, Key, Loc, TickMask, TockTable, XrdCmsKey::TOD, and XrdCmsKey::TODRef.
Referenced by XrdCmsCache::DelFile(), XrdCmsCache::Init(), and XrdCmsCache::TickTock().
| XrdCmsKeyItem * XrdCmsKeyItem::Unload | ( | XrdCmsKeyItem * | theItem | ) | [static] |
References XrdCmsKey::Hash, XrdCmsKeyLoc::HashSave, Key, Loc, TickMask, TockTable, XrdCmsKey::TOD, and XrdCmsKey::TODRef.
XrdCmsKeyItem * XrdCmsKeyItem::Free = 0 [static, private] |
Referenced by Alloc(), Recycle(), and Replenish().
const int XrdCmsKeyItem::minAlloc = 4096 [static] |
Referenced by XrdCmsCache::Recycle(), and Replenish().
const int XrdCmsKeyItem::minFree = 1024 [static] |
Referenced by XrdCmsCache::Recycle().
Referenced by XrdCmsNash::Add(), Alloc(), XrdCmsNash::Expand(), XrdCmsNash::Find(), XrdCmsNash::Recycle(), Recycle(), and Replenish().
int XrdCmsKeyItem::numFree = 0 [static, private] |
Referenced by Alloc(), Recycle(), Replenish(), and Stats().
int XrdCmsKeyItem::numHave = 0 [static, private] |
Referenced by Replenish(), and Stats().
int XrdCmsKeyItem::numNull = 0 [static, private] |
const unsigned int XrdCmsKeyItem::TickMask = 63 [static] |
Referenced by Alloc(), Reload(), XrdCmsCache::TickTock(), and Unload().
const unsigned int XrdCmsKeyItem::TickRate = 64 [static] |
Referenced by XrdCmsCache::Init().
XrdCmsKeyItem * XrdCmsKeyItem::TockTable = {0} [static, private] |
1.7.1