BlockingIOStrategy.cc
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2017 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 "BlockingFile.h"
13 #include "BlockingIOStrategy.h"
14 #include "unlinkd.h"
15 
16 bool
18 {
19  return false;
20 }
21 
22 int
24 {
25  /* Return 999 (99.9%) constant load */
26  return 999;
27 }
28 
30 BlockingIOStrategy::newFile (char const *path)
31 {
32  return new BlockingFile (path);
33 }
34 
35 bool
37 {
38  return true;
39 }
40 
41 void
43 {
44  unlinkdUnlink(path);
45 }
46 
virtual bool shedLoad()
virtual bool unlinkdUseful() const
virtual void unlinkFile(char const *)
void unlinkdUnlink(const char *path)
Definition: unlinkd.cc:37
virtual RefCount< DiskFile > newFile(char const *path)

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors