#include <ClientInfo.h>

Collaboration diagram for CommQuotaQueue:

Public Member Functions

void * operator new (size_t size)
 
void operator delete (void *address)
 
void * toCbdata () noexcept
 
 CommQuotaQueue (ClientInfo *info)
 
 ~CommQuotaQueue ()
 
bool empty () const
 
size_t size () const
 
int front () const
 
unsigned int enqueue (int fd)
 places the given fd at the end of the queue; returns reservation ID More...
 
void dequeue ()
 removes queue head More...
 

Public Attributes

ClientInfoclientInfo
 bucket responsible for quota maintenance More...
 
int ins
 number of enqueue calls, used to generate a "reservation" ID More...
 
int outs
 number of dequeue calls, used to check the "reservation" ID More...
 

Private Types

typedef std::deque< intStore
 

Private Attributes

Store fds
 descriptor queue More...
 

Static Private Attributes

static cbdata_type CBDATA_CommQuotaQueue = CBDATA_UNKNOWN
 

Detailed Description

Definition at line 107 of file ClientInfo.h.

Member Typedef Documentation

◆ Store

typedef std::deque<int> CommQuotaQueue::Store
private

Definition at line 129 of file ClientInfo.h.

Constructor & Destructor Documentation

◆ CommQuotaQueue()

CommQuotaQueue::CommQuotaQueue ( ClientInfo info)

Definition at line 1438 of file comm.cc.

References assert, and clientInfo.

◆ ~CommQuotaQueue()

CommQuotaQueue::~CommQuotaQueue ( )

Definition at line 1444 of file comm.cc.

References assert, and clientInfo.

Member Function Documentation

◆ dequeue()

void CommQuotaQueue::dequeue ( )

Definition at line 1461 of file comm.cc.

References assert, clientInfo, debugs, fds, hash_link::key, and outs.

Referenced by ClientInfo::quotaDequeue().

◆ empty()

bool CommQuotaQueue::empty ( ) const
inline

Definition at line 115 of file ClientInfo.h.

Referenced by ClientInfo::hasQueue().

◆ enqueue()

unsigned int CommQuotaQueue::enqueue ( int  fd)

Definition at line 1451 of file comm.cc.

References clientInfo, debugs, fds, ins, and hash_link::key.

Referenced by ClientInfo::quotaEnqueue().

◆ front()

int CommQuotaQueue::front ( ) const
inline

Definition at line 117 of file ClientInfo.h.

Referenced by ClientInfo::quotaPeekFd().

◆ operator delete()

void CommQuotaQueue::operator delete ( void *  address)
inline

Definition at line 109 of file ClientInfo.h.

◆ operator new()

void* CommQuotaQueue::operator new ( size_t  size)
inline

Definition at line 109 of file ClientInfo.h.

◆ size()

size_t CommQuotaQueue::size ( ) const
inline

Definition at line 116 of file ClientInfo.h.

Referenced by ClientInfo::quota().

◆ toCbdata()

void* CommQuotaQueue::toCbdata ( )
inlinenoexcept

Definition at line 109 of file ClientInfo.h.

Member Data Documentation

◆ CBDATA_CommQuotaQueue

cbdata_type CommQuotaQueue::CBDATA_CommQuotaQueue = CBDATA_UNKNOWN
staticprivate

Definition at line 109 of file ClientInfo.h.

◆ clientInfo

ClientInfo* CommQuotaQueue::clientInfo

◆ fds

Store CommQuotaQueue::fds
private

Definition at line 130 of file ClientInfo.h.

Referenced by dequeue(), and enqueue().

◆ ins

int CommQuotaQueue::ins

Definition at line 124 of file ClientInfo.h.

Referenced by enqueue().

◆ outs

int CommQuotaQueue::outs

Definition at line 125 of file ClientInfo.h.

Referenced by dequeue(), and ClientInfo::quotaPeekReserv().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors