#include <AsyncCallList.h>

| Public Member Functions | |
| AsyncCallList ()=default | |
| AsyncCallList (const AsyncCallList &)=delete | |
| AsyncCallList & | operator= (const AsyncCallList &)=delete | 
| void | add (const AsyncCallPointer &) | 
| stores the given async call  More... | |
| AsyncCallPointer | extract () | 
| size_t | size () const | 
| the number of currently stored calls  More... | |
| Private Attributes | |
| AsyncCallPointer | head | 
| the earliest still-stored call (or nil)  More... | |
| AsyncCallPointer | tail | 
| the latest still-stored call (or nil)  More... | |
| size_t | length = 0 | 
| the number of currently stored calls  More... | |
Detailed Description
An efficient (but intrusive) AsyncCall storage preserving FIFO order. A given AsyncCall object may reside in at most one such storage.
Definition at line 17 of file AsyncCallList.h.
Constructor & Destructor Documentation
◆ AsyncCallList() [1/2]
| 
 | default | 
◆ AsyncCallList() [2/2]
| 
 | delete | 
Member Function Documentation
◆ add()
| void AsyncCallList::add | ( | const AsyncCallPointer & | call | ) | 
Definition at line 15 of file AsyncCallList.cc.
References Assure, head, length, AsyncCall::Next(), AsyncCall::setNext(), and tail.
Referenced by DelayedAsyncCalls::delay(), and AsyncCallQueue::schedule().
◆ extract()
| AsyncCall::Pointer AsyncCallList::extract | ( | ) | 
removes the earliest add()-ed call that is still stored (if any)
- Returns
- the removed call (or nil)
- Return values
- 
  nil means the list stored no calls at extract() time 
Definition at line 33 of file AsyncCallList.cc.
References Assure, head, length, AsyncCall::Next(), AsyncCall::setNext(), and tail.
Referenced by AsyncCallQueue::fire(), and DelayedAsyncCalls::schedule().
◆ operator=()
| 
 | delete | 
◆ size()
| 
 | inline | 
Definition at line 34 of file AsyncCallList.h.
References length.
Referenced by DelayedAsyncCalls::delay(), and AsyncCallQueue::fire().
Member Data Documentation
◆ head
| 
 | private | 
Definition at line 37 of file AsyncCallList.h.
◆ length
| 
 | private | 
Definition at line 39 of file AsyncCallList.h.
◆ tail
| 
 | private | 
Definition at line 38 of file AsyncCallList.h.
The documentation for this class was generated from the following files:
- src/base/AsyncCallList.h
- src/base/AsyncCallList.cc
Introduction
- About Squid
- Why Squid?
- Squid Developers
- How to Donate
- How to Help Out
- Getting Squid
- Squid Source Packages
- Squid Deployment Case-Studies
- Squid Software Foundation
Documentation
- Quick Setup
- Configuration:
- FAQ and Wiki
- Guide Books:
- Non-English
- More...
Support
- Security Advisories
- Bugzilla Database
- Mailing lists
- Contacting us
- Commercial services
- Project Sponsors
- Squid-based products
