]> git.ipfire.org Git - thirdparty/squid.git/blame - src/CompletionDispatcher.h
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / src / CompletionDispatcher.h
CommitLineData
a553a5a3 1/*
5b74111a 2 * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
a553a5a3 3 *
bbc27441
AJ
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.
a553a5a3 7 */
8
9#ifndef SQUID_COMPLETIONDISPATCHER_H
10#define SQUID_COMPLETIONDISPATCHER_H
11
a553a5a3 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.
15 */
16
17class CompletionDispatcher
18{
19
20public:
21
22 virtual ~CompletionDispatcher() {}
23
8ff3fa2e 24 /* dispatch events. This should return true if there were events dispatched
25 * between the last call to dispatch() returning and this call returning.
26 */
27 virtual bool dispatch() = 0;
a553a5a3 28};
29
30#endif /* SQUID_COMPLETIONDISPATCHER_H */
f53969cc 31