AIODiskIOModule.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
3  *
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.
7  */
8 
9 #ifndef SQUID_SRC_DISKIO_AIO_AIODISKIOMODULE_H
10 #define SQUID_SRC_DISKIO_AIO_AIODISKIOMODULE_H
11 
12 #if HAVE_DISKIO_MODULE_AIO
13 
14 #include "DiskIO/DiskIOModule.h"
15 
16 class AIODiskIOModule : public DiskIOModule
17 {
18 
19 public:
20  static AIODiskIOModule &GetInstance();
21  AIODiskIOModule();
22  void init() override;
23  void gracefulShutdown() override;
24  char const *type () const override;
25  DiskIOStrategy* createStrategy() override;
26 
27 private:
28  static AIODiskIOModule Instance;
29 };
30 
31 #endif /* HAVE_DISKIO_MODULE_AIO */
32 #endif /* SQUID_SRC_DISKIO_AIO_AIODISKIOMODULE_H */
33 
virtual const char * type() const =0
static CodeContext::Pointer & Instance()
guarantees the forever existence of the pointer, starting from the first use
Definition: CodeContext.cc:26
virtual void gracefulShutdown()=0
virtual DiskIOStrategy * createStrategy()=0
virtual void init()=0

 

Introduction

Documentation

Support

Miscellaneous