#include <XrdSsiScale.hh>
Public Member Functions | |
int | getEnt () |
void | retEnt (int xEnt) |
bool | rsvEnt (int xEnt) |
void | setSpread (short sval) |
XrdSsiScale () | |
~XrdSsiScale () | |
Static Public Attributes | |
static const int | maxSprd = 1024 |
static const int | maxEnt = 32 |
static const int | entShft = 10 |
static const unsigned int | maxPend = 65500 |
Private Member Functions | |
int | Spread (int ent) |
Private Attributes | |
XrdSysMutex | entMutex |
uint16_t | pendCnt [maxEnt] |
int | nowEnt |
short | maxSpread |
short | nowSpread |
XrdSsiScale::~XrdSsiScale | ( | ) | [inline] |
int XrdSsiScale::getEnt | ( | ) | [inline] |
References entMutex, entShft, XrdSysMutex::Lock(), maxEnt, maxPend, maxSpread, nowEnt, pendCnt, Spread(), and XrdSysMutex::UnLock().
void XrdSsiScale::retEnt | ( | int | xEnt | ) | [inline] |
References entMutex, entShft, XrdSysMutex::Lock(), maxEnt, pendCnt, and XrdSysMutex::UnLock().
bool XrdSsiScale::rsvEnt | ( | int | xEnt | ) | [inline] |
References entMutex, entShft, XrdSysMutex::Lock(), maxEnt, maxPend, nowEnt, pendCnt, and XrdSysMutex::UnLock().
void XrdSsiScale::setSpread | ( | short | sval | ) | [inline] |
References entMutex, XrdSysMutex::Lock(), maxSprd, maxSpread, and XrdSysMutex::UnLock().
int XrdSsiScale::Spread | ( | int | ent | ) | [inline, private] |
XrdSysMutex XrdSsiScale::entMutex [private] |
Referenced by getEnt(), retEnt(), rsvEnt(), setSpread(), and Spread().
const int XrdSsiScale::entShft = 10 [static] |
const int XrdSsiScale::maxEnt = 32 [static] |
Referenced by getEnt(), retEnt(), rsvEnt(), and XrdSsiScale().
const unsigned int XrdSsiScale::maxPend = 65500 [static] |
const int XrdSsiScale::maxSprd = 1024 [static] |
Referenced by setSpread().
short XrdSsiScale::maxSpread [private] |
Referenced by getEnt(), setSpread(), and Spread().
int XrdSsiScale::nowEnt [private] |
short XrdSsiScale::nowSpread [private] |
Referenced by Spread().
uint16_t XrdSsiScale::pendCnt[maxEnt] [private] |
Referenced by getEnt(), retEnt(), rsvEnt(), and XrdSsiScale().