]> git.ipfire.org Git - thirdparty/squid.git/blob - src/DiskIO/Mmapped/MmappedDiskIOModule.cc
Source Format Enforcement (#532)
[thirdparty/squid.git] / src / DiskIO / Mmapped / MmappedDiskIOModule.cc
1 /*
2 * Copyright (C) 1996-2020 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 #include "squid.h"
10 #include "MmappedDiskIOModule.h"
11 #include "MmappedIOStrategy.h"
12
13 MmappedDiskIOModule::MmappedDiskIOModule()
14 {
15 ModuleAdd(*this);
16 }
17
18 MmappedDiskIOModule &
19 MmappedDiskIOModule::GetInstance()
20 {
21 return Instance;
22 }
23
24 void
25 MmappedDiskIOModule::init()
26 {}
27
28 void
29 MmappedDiskIOModule::gracefulShutdown()
30 {}
31
32 DiskIOStrategy*
33 MmappedDiskIOModule::createStrategy()
34 {
35 return new MmappedIOStrategy();
36 }
37
38 MmappedDiskIOModule MmappedDiskIOModule::Instance;
39
40 char const *
41 MmappedDiskIOModule::type () const
42 {
43 return "Mmapped";
44 }
45