]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/base/AsyncCallQueue.h
1 #ifndef SQUID_ASYNCCALLQUEUE_H
2 #define SQUID_ASYNCCALLQUEUE_H
4 #include "base/AsyncCall.h"
8 // The queue of asynchronous calls. All calls are fired during a single main
9 // loop iteration until the queue is exhausted
13 // there is only one queue
14 static AsyncCallQueue
&Instance();
16 // make this async call when we get a chance
17 void schedule(AsyncCall::Pointer
&call
);
19 // fire all scheduled calls; returns true if at least one was fired
27 AsyncCall::Pointer theHead
;
28 AsyncCall::Pointer theTail
;
30 static AsyncCallQueue
*TheInstance
;
33 #endif /* SQUID_ASYNCCALLQUEUE_H */