]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/base/AsyncCallQueue.h
7 #ifndef SQUID_ASYNCCALLQUEUE_H
8 #define SQUID_ASYNCCALLQUEUE_H
11 #include "base/AsyncCall.h"
15 // The queue of asynchronous calls. All calls are fired during a single main
16 // loop iteration until the queue is exhausted
20 // there is only one queue
21 static AsyncCallQueue
&Instance();
23 // make this async call when we get a chance
24 void schedule(AsyncCall::Pointer
&call
);
26 // fire all scheduled calls; returns true if at least one was fired
34 AsyncCall::Pointer theHead
;
35 AsyncCall::Pointer theTail
;
37 static AsyncCallQueue
*TheInstance
;
40 #endif /* SQUID_ASYNCCALLQUEUE_H */