#include <ClientInfo.h>
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 | |
ClientInfo * | clientInfo |
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< int > | Store |
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
|
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()
|
inline |
◆ enqueue()
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()
|
inline |
Definition at line 123 of file ClientInfo.h.
References fds.
Referenced by ClientInfo::quotaPeekFd().
◆ operator delete()
|
inline |
Definition at line 115 of file ClientInfo.h.
◆ operator new()
|
inline |
Definition at line 115 of file ClientInfo.h.
◆ size()
|
inline |
◆ toCbdata()
|
inlinenoexcept |
Definition at line 115 of file ClientInfo.h.
Member Data Documentation
◆ CBDATA_CommQuotaQueue
|
staticprivate |
Definition at line 115 of file ClientInfo.h.
◆ clientInfo
ClientInfo* CommQuotaQueue::clientInfo |
Definition at line 127 of file ClientInfo.h.
Referenced by CommQuotaQueue(), ~CommQuotaQueue(), commHandleWriteHelper(), dequeue(), and enqueue().
◆ fds
|
private |
◆ 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:
- src/ClientInfo.h
- src/comm.cc