]>
Commit | Line | Data |
---|---|---|
59b2d47f | 1 | /* |
4ac4a490 | 2 | * Copyright (C) 1996-2017 The Squid Software Foundation and contributors |
59b2d47f | 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. | |
59b2d47f | 7 | */ |
8 | ||
b9ae18aa | 9 | #ifndef SQUID_AIODISKIOMODULE_H |
10 | #define SQUID_AIODISKIOMODULE_H | |
59b2d47f | 11 | |
d9691f09 | 12 | #if HAVE_DISKIO_MODULE_AIO |
2513178d | 13 | |
b9ae18aa | 14 | #include "DiskIO/DiskIOModule.h" |
59b2d47f | 15 | |
b9ae18aa | 16 | class AIODiskIOModule : public DiskIOModule |
59b2d47f | 17 | { |
18 | ||
19 | public: | |
b9ae18aa | 20 | static AIODiskIOModule &GetInstance(); |
21 | AIODiskIOModule(); | |
22 | virtual void init(); | |
1e1a9021 | 23 | virtual void gracefulShutdown(); |
b9ae18aa | 24 | virtual char const *type () const; |
25 | virtual DiskIOStrategy* createStrategy(); | |
26 | ||
27 | private: | |
28 | static AIODiskIOModule Instance; | |
59b2d47f | 29 | }; |
30 | ||
d9691f09 | 31 | #endif /* HAVE_DISKIO_MODULE_AIO */ |
b9ae18aa | 32 | #endif /* SQUID_AIODISKIOMODULE_H */ |
f53969cc | 33 |