Squid Web Cache
master
Loading...
Searching...
No Matches
DelayedAsyncCalls.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2025 The Squid Software Foundation and contributors
3
*
4
* Squid software is distributed under GPLv2+ license and includes
5
* contributions from numerous individuals and organizations.
6
* Please see the COPYING and CONTRIBUTORS files for details.
7
*/
8
9
#ifndef SQUID_SRC_BASE_DELAYEDASYNCCALLS_H
10
#define SQUID_SRC_BASE_DELAYEDASYNCCALLS_H
11
12
#include "
base/AsyncCallList.h
"
13
16
class
DelayedAsyncCalls
17
{
18
public
:
19
~DelayedAsyncCalls
() {
schedule
(); }
20
22
void
delay
(
const
AsyncCallPointer
&);
23
25
void
schedule
();
26
27
private
:
29
AsyncCallList
deferredReads
;
30
};
31
32
#endif
/* SQUID_SRC_BASE_DELAYEDASYNCCALLS_H */
33
AsyncCallList.h
AsyncCallList
Definition
AsyncCallList.h:18
DelayedAsyncCalls
Definition
DelayedAsyncCalls.h:17
DelayedAsyncCalls::schedule
void schedule()
schedules and forgets all async calls previously stored by delay()
Definition
DelayedAsyncCalls.cc:22
DelayedAsyncCalls::delay
void delay(const AsyncCallPointer &)
stores the given call to schedule it at schedule() or destruction time
Definition
DelayedAsyncCalls.cc:15
DelayedAsyncCalls::~DelayedAsyncCalls
~DelayedAsyncCalls()
Definition
DelayedAsyncCalls.h:19
DelayedAsyncCalls::deferredReads
AsyncCallList deferredReads
delay()-ed calls waiting to be scheduled, in delay() call order
Definition
DelayedAsyncCalls.h:29
RefCount< AsyncCall >
squid
src
base
DelayedAsyncCalls.h
Generated by
1.9.8