#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 113 of file ClientInfo.h.

Member Typedef Documentation

◆ Store

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

Definition at line 135 of file ClientInfo.h.

Constructor & Destructor Documentation

◆ CommQuotaQueue()

CommQuotaQueue::CommQuotaQueue ( ClientInfo info)

Definition at line 1400 of file comm.cc.

References assert, and clientInfo.

◆ ~CommQuotaQueue()

CommQuotaQueue::~CommQuotaQueue ( )

Definition at line 1406 of file comm.cc.

References assert, and clientInfo.

Member Function Documentation

◆ dequeue()

void CommQuotaQueue::dequeue ( )

Definition at line 1424 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 121 of file ClientInfo.h.

References fds.

Referenced by ClientInfo::hasQueue().

◆ enqueue()

unsigned int CommQuotaQueue::enqueue ( int  fd)

Definition at line 1413 of file comm.cc.

References clientInfo, CodeContext::Current(), debugs, fd_table, fds, ins, and hash_link::key.

Referenced by ClientInfo::quotaEnqueue().

◆ front()

int CommQuotaQueue::front ( ) const
inline

Definition at line 123 of file ClientInfo.h.

References fds.

Referenced by ClientInfo::quotaPeekFd().

◆ operator delete()

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

Definition at line 115 of file ClientInfo.h.

◆ operator new()

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

Definition at line 115 of file ClientInfo.h.

◆ size()

size_t CommQuotaQueue::size ( ) const
inline

Definition at line 122 of file ClientInfo.h.

References fds.

Referenced by ClientInfo::quota().

◆ toCbdata()

void * CommQuotaQueue::toCbdata ( )
inlinenoexcept

Definition at line 115 of file ClientInfo.h.

Member Data Documentation

◆ CBDATA_CommQuotaQueue

cbdata_type CommQuotaQueue::CBDATA_CommQuotaQueue = CBDATA_UNKNOWN
staticprivate

Definition at line 115 of file ClientInfo.h.

◆ clientInfo

ClientInfo* CommQuotaQueue::clientInfo

◆ fds

Store CommQuotaQueue::fds
private

Definition at line 136 of file ClientInfo.h.

Referenced by dequeue(), empty(), enqueue(), front(), and size().

◆ ins

int CommQuotaQueue::ins

Definition at line 130 of file ClientInfo.h.

Referenced by enqueue().

◆ outs

int CommQuotaQueue::outs

Definition at line 131 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