]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/CompletionDispatcher.h
2 * Copyright (C) 1996-2018 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_COMPLETIONDISPATCHER_H
10 #define SQUID_COMPLETIONDISPATCHER_H
12 /* Dispatch code to handle events that have completed. Completed events are queued
13 * with a completion dispatcher by the OS Async engine - i.e. the poll or kqueue or
14 * select loop, or a signal reciever, or the diskd/diskthreads/etc modules.
17 class CompletionDispatcher
22 virtual ~CompletionDispatcher() {}
24 /* dispatch events. This should return true if there were events dispatched
25 * between the last call to dispatch() returning and this call returning.
27 virtual bool dispatch() = 0;
30 #endif /* SQUID_COMPLETIONDISPATCHER_H */