xrootd
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
XrdSsiScale Class Reference

#include <XrdSsiScale.hh>

Collaboration diagram for XrdSsiScale:
Collaboration graph
[legend]

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 =256
 
static const int maxEnt = 32
 
static const int entShft = 8
 
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
 

Constructor & Destructor Documentation

◆ XrdSsiScale()

XrdSsiScale::XrdSsiScale ( )
inline

References maxEnt, and pendCnt.

◆ ~XrdSsiScale()

XrdSsiScale::~XrdSsiScale ( )
inline

Member Function Documentation

◆ getEnt()

int XrdSsiScale::getEnt ( )
inline

◆ retEnt()

void XrdSsiScale::retEnt ( int  xEnt)
inline

◆ rsvEnt()

bool XrdSsiScale::rsvEnt ( int  xEnt)
inline

◆ setSpread()

void XrdSsiScale::setSpread ( short  sval)
inline

References maxSprd, and maxSpread.

◆ Spread()

int XrdSsiScale::Spread ( int  ent)
inlineprivate

References entMutex, entShft, maxSpread, nowSpread, and XrdSysMutex::UnLock().

Referenced by getEnt().

Member Data Documentation

◆ entMutex

XrdSysMutex XrdSsiScale::entMutex
private

Referenced by getEnt(), retEnt(), rsvEnt(), and Spread().

◆ entShft

const int XrdSsiScale::entShft = 8
static

Referenced by getEnt(), retEnt(), rsvEnt(), and Spread().

◆ maxEnt

const int XrdSsiScale::maxEnt = 32
static

Referenced by getEnt(), retEnt(), rsvEnt(), and XrdSsiScale().

◆ maxPend

const unsigned int XrdSsiScale::maxPend = 65500
static

Referenced by getEnt(), and rsvEnt().

◆ maxSprd

const int XrdSsiScale::maxSprd =256
static

Referenced by setSpread().

◆ maxSpread

short XrdSsiScale::maxSpread
private

Referenced by getEnt(), setSpread(), and Spread().

◆ nowEnt

int XrdSsiScale::nowEnt
private

Referenced by getEnt(), and rsvEnt().

◆ nowSpread

short XrdSsiScale::nowSpread
private

Referenced by Spread().

◆ pendCnt

uint16_t XrdSsiScale::pendCnt[maxEnt]
private

Referenced by getEnt(), retEnt(), rsvEnt(), and XrdSsiScale().


The documentation for this class was generated from the following file: