-
Notifications
You must be signed in to change notification settings - Fork 531
/
Copy pathCommonPool.h
40 lines (32 loc) · 1.01 KB
/
CommonPool.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* Copyright (C) 1996-2024 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
* Please see the COPYING and CONTRIBUTORS files for details.
*/
/* DEBUG: section 77 Delay Pools */
#ifndef SQUID_SRC_COMMONPOOL_H
#define SQUID_SRC_COMMONPOOL_H
#if USE_DELAY_POOLS
#include "CompositePoolNode.h"
#include "SquidString.h"
/*
\ingroup DelayPoolsAPI
*
* TODO: Next steps: make this a composite, and TypeLabel a composite method.
* Then we have a legacy composite which returns class 1/2/3, and new
* composites which return a descriptor of some sort.
*/
class CommonPool
{
MEMPROXY_CLASS(CommonPool);
public:
static CommonPool *Factory (unsigned char _class, CompositePoolNode::Pointer&);
char const* theClassTypeLabel() const {return typeLabel.termedBuf();}
protected:
CommonPool();
String typeLabel;
};
#endif /* USE_DELAY_POOLS */
#endif /* SQUID_SRC_COMMONPOOL_H */