squid-
cache.org
Optimising Web Delivery
Docs
Download
Donate
Support
About
Contact
Shop
Blog
src
DiskIO
IpcIo
IpcIoIOStrategy.cc
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
/* DEBUG: section 47 Store Directory Routines */
10
11
#include "
squid.h
"
12
#include "
IpcIoFile.h
"
13
#include "
IpcIoIOStrategy.h
"
14
#include "
unlinkd.h
"
15
16
bool
17
IpcIoIOStrategy::shedLoad
()
18
{
19
return
false
;
20
}
21
22
int
23
IpcIoIOStrategy::load
()
24
{
25
/* Return 999 (99.9%) constant load */
26
return
999;
27
}
28
29
DiskFile::Pointer
30
IpcIoIOStrategy::newFile
(
char
const
*path)
31
{
32
return
new
IpcIoFile
(path);
33
}
34
35
bool
36
IpcIoIOStrategy::unlinkdUseful
()
const
37
{
38
return
true
;
39
}
40
41
void
42
IpcIoIOStrategy::unlinkFile
(
char
const
*path)
43
{
44
unlinkdUnlink
(path);
45
}
46
IpcIoFile.h
IpcIoIOStrategy.h
IpcIoFile
Definition:
IpcIoFile.h:67
IpcIoIOStrategy::load
int load() override
Definition:
IpcIoIOStrategy.cc:23
IpcIoIOStrategy::unlinkFile
void unlinkFile(char const *) override
Definition:
IpcIoIOStrategy.cc:42
IpcIoIOStrategy::newFile
RefCount< DiskFile > newFile(char const *path) override
Definition:
IpcIoIOStrategy.cc:30
IpcIoIOStrategy::shedLoad
bool shedLoad() override
Definition:
IpcIoIOStrategy.cc:17
IpcIoIOStrategy::unlinkdUseful
bool unlinkdUseful() const override
Definition:
IpcIoIOStrategy.cc:36
RefCount< DiskFile >
squid.h
unlinkdUnlink
void unlinkdUnlink(const char *path)
Definition:
unlinkd.cc:39
unlinkd.h
Introduction
About Squid
Why Squid?
Squid Developers
How to Donate
How to Help Out
Getting Squid
Squid Source Packages
Squid Deployment Case-Studies
Squid Software Foundation
Documentation
Quick Setup
Configuration:
Reference
Examples
FAQ
and
Wiki
Guide Books:
Beginners
Definitive
Non-English
More...
Support
Security Advisories
Bugzilla Database
Mailing lists
Contacting us
Commercial services
Project Sponsors
Squid-based products
Miscellaneous
Developer Resources
Related Writings
Related Software:
Authenticators
Ecap
Icap
Ident
Log Analysis
Monitor
Proxies
Redirectors
General
Squid Artwork
Web Site Translations
Japanese
Mirrors
Website:
gr
il
pl
...
full list
FTP Package Archive