]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/base/AsyncCallQueue.h
2 * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
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.
9 #ifndef SQUID_ASYNCCALLQUEUE_H
10 #define SQUID_ASYNCCALLQUEUE_H
12 #include "base/AsyncCall.h"
16 // The queue of asynchronous calls. All calls are fired during a single main
17 // loop iteration until the queue is exhausted
21 // there is only one queue
22 static AsyncCallQueue
&Instance();
24 // make this async call when we get a chance
25 void schedule(AsyncCall::Pointer
&call
);
27 // fire all scheduled calls; returns true if at least one was fired
35 AsyncCall::Pointer theHead
;
36 AsyncCall::Pointer theTail
;
38 static AsyncCallQueue
*TheInstance
;
41 #endif /* SQUID_ASYNCCALLQUEUE_H */