]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/DiskIO/DiskThreads/CommIO.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_SRC_DISKIO_DISKTHREADS_COMMIO_H
10 #define SQUID_SRC_DISKIO_DISKTHREADS_COMMIO_H
20 static inline void NotifyIOCompleted();
21 static void ResetNotifications();
22 static void Initialize();
23 static void NotifyIOClose();
26 static void NULLFDHandler(int, void *);
27 static void FlushPipe();
28 static bool Initialized
;
29 static bool DoneSignalled
;
31 static int DoneReadFD
;
34 /* Inline code. TODO: make structured approach to inlining */
36 CommIO::NotifyIOCompleted()
39 fatalf("Disk Threads I/O pipes not initialized before first use.");
44 FD_WRITE_METHOD(DoneFD
, "!", 1);
48 #endif /* SQUID_SRC_DISKIO_DISKTHREADS_COMMIO_H */