Squid Web Cache
master
Loading...
Searching...
No Matches
CommonPool.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2025 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 77 Delay Pools */
10
11
#ifndef SQUID_SRC_COMMONPOOL_H
12
#define SQUID_SRC_COMMONPOOL_H
13
14
#if USE_DELAY_POOLS
15
#include "
CompositePoolNode.h
"
16
#include "
sbuf/SBuf.h
"
17
18
/*
19
\ingroup DelayPoolsAPI
20
*
21
* TODO: Next steps: make this a composite, and TypeLabel a composite method.
22
* Then we have a legacy composite which returns class 1/2/3, and new
23
* composites which return a descriptor of some sort.
24
*/
25
class
CommonPool
26
{
27
MEMPROXY_CLASS
(
CommonPool
);
28
29
public
:
30
static
CommonPool
*
Factory
(
unsigned
char
_class,
CompositePoolNode::Pointer
&);
31
const
SBuf
&
classTypeLabel
()
const
{
return
typeLabel
; }
32
33
protected
:
34
CommonPool
();
35
SBuf
typeLabel
;
36
};
37
38
#endif
/* USE_DELAY_POOLS */
39
#endif
/* SQUID_SRC_COMMONPOOL_H */
40
CompositePoolNode.h
SBuf.h
CommonPool
Definition
CommonPool.h:26
CommonPool::CommonPool
CommonPool()
Definition
delay_pools.cc:310
CommonPool::classTypeLabel
const SBuf & classTypeLabel() const
Definition
CommonPool.h:31
CommonPool::MEMPROXY_CLASS
MEMPROXY_CLASS(CommonPool)
CommonPool::Factory
static CommonPool * Factory(unsigned char _class, CompositePoolNode::Pointer &)
Definition
delay_pools.cc:248
CommonPool::typeLabel
SBuf typeLabel
Definition
CommonPool.h:35
RefCount< CompositePoolNode >
SBuf
Definition
SBuf.h:94
squid
src
CommonPool.h
Generated by
1.9.8