63int XrdCmsKeyItem::numFree = 0;
64int XrdCmsKeyItem::numHave = 0;
65int XrdCmsKeyItem::numNull = 0;
83 TockTable[theTock] = kP;
93 Say.Emsg(
"Key", ENOMEM,
"create key item");
103 static char *noKey = (
char *)
"";
107 if (
Key.Val &&
Key.Val != noKey) {free(
Key.Val);
Key.Val = noKey;}
112 Next = Free; Free =
this;
123 Key.TODRef = TockTable[
Key.TOD];
124 TockTable[
Key.TOD] =
this;
146 while(i--) {kP->
Next = Free; Free = kP; kP++;}
182 myItem.
Key.
TODRef = TockTable[theTock]; TockTable[theTock] = 0;
184 if (nP->
Key.
TOD == theTock)
188 TockTable[nP->
Key.
TOD] = nP;
202 kP = TockTable[theTock];
203 while(kP && kP != theItem) {pP = kP; kP = kP->
Key.
TODRef;}
206 else TockTable[theTock] = kP->
Key.
TODRef;
static XrdCmsKeyItem * Unload(unsigned int theTock)
static const unsigned int TickMask
static XrdCmsKeyItem * Alloc(unsigned int theTock)
static const int minAlloc
static void Stats(int &isAlloc, int &isFree, int &wasEmpty)
static uint32_t CRC32(const unsigned char *data, int count)