DelayedAsyncCalls.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 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 
17 {
18 public:
20 
22  void delay(const AsyncCallPointer &);
23 
25  void schedule();
26 
27 private:
30 };
31 
32 #endif /* SQUID_SRC_BASE_DELAYEDASYNCCALLS_H */
33 
void delay(const AsyncCallPointer &)
stores the given call to schedule it at schedule() or destruction time
AsyncCallList deferredReads
delay()-ed calls waiting to be scheduled, in delay() call order
void schedule()
schedules and forgets all async calls previously stored by delay()

 

Introduction

Documentation

Support

Miscellaneous