|
Squid Web Cache v8/master
|
#include <ClientInfo.h>
Public Member Functions | |
| CBDATA_DECL_ (CommQuotaQueue, 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 | |
| void | dequeue () |
| removes queue head | |
Public Attributes | |
| ClientInfo * | clientInfo |
| bucket responsible for quota maintenance | |
| int | ins |
| number of enqueue calls, used to generate a "reservation" ID | |
| int | outs |
| number of dequeue calls, used to check the "reservation" ID | |
Private Types | |
| typedef std::deque< int > | Store |
Private Attributes | |
| Store | fds |
| descriptor queue | |
Definition at line 113 of file ClientInfo.h.
|
private |
Definition at line 135 of file ClientInfo.h.
| CommQuotaQueue::CommQuotaQueue | ( | ClientInfo * | info | ) |
Definition at line 1367 of file comm.cc.
References assert, and clientInfo.
| CommQuotaQueue::~CommQuotaQueue | ( | ) |
Definition at line 1373 of file comm.cc.
References assert, and clientInfo.
| CommQuotaQueue::CBDATA_DECL_ | ( | CommQuotaQueue | , |
| noexcept | |||
| ) |
| void CommQuotaQueue::dequeue | ( | ) |
Definition at line 1391 of file comm.cc.
References assert, clientInfo, debugs, fds, hash_link::key, and outs.
Referenced by ClientInfo::quotaDequeue().
|
inline |
Definition at line 1380 of file comm.cc.
References clientInfo, CodeContext::Current(), debugs, fd_table, fds, ins, and hash_link::key.
Referenced by ClientInfo::quotaEnqueue().
|
inline |
Definition at line 123 of file ClientInfo.h.
References fds.
Referenced by ClientInfo::quotaPeekFd().
|
inline |
| ClientInfo* CommQuotaQueue::clientInfo |
Definition at line 127 of file ClientInfo.h.
Referenced by CommQuotaQueue(), ~CommQuotaQueue(), commHandleWriteHelper(), dequeue(), and enqueue().
|
private |
| int CommQuotaQueue::ins |
Definition at line 130 of file ClientInfo.h.
Referenced by enqueue().
| int CommQuotaQueue::outs |
Definition at line 131 of file ClientInfo.h.
Referenced by dequeue(), and ClientInfo::quotaPeekReserv().