squid-
cache.org
Optimising Web Delivery
Docs
Download
Donate
Support
About
Contact
Shop
Blog
src
tests
stub_HelperChildConfig.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
#include "
squid.h
"
10
#include "
globals.h
"
11
#include "
helper/ChildConfig.h
"
12
13
#define STUB_API "stub_HelperChildconfig.cc"
14
#include "
tests/STUB.h
"
15
16
#include <cstring>
17
18
Helper::ChildConfig::ChildConfig
():
19
n_max(0),
20
n_startup(0),
21
n_idle(1),
22
concurrency(0),
23
n_running(0),
24
n_active(0),
25
queue_size(0),
26
onPersistentOverload(actDie),
27
defaultQueueSize(true)
28
{}
29
30
Helper::ChildConfig::ChildConfig
(
const
unsigned
int
m):
31
n_max(m),
32
n_startup(0),
33
n_idle(1),
34
concurrency(0),
35
n_running(0),
36
n_active(0),
37
queue_size(2 * m),
38
onPersistentOverload(actDie),
39
defaultQueueSize(true)
40
{}
41
42
int
Helper::ChildConfig::needNew
() const
STUB_RETVAL
(0)
43
void
Helper
::ChildConfig::parseConfig()
STUB
44
Helper
::ChildConfig &
Helper
::ChildConfig::updateLimits(const
Helper
::ChildConfig &)
STUB_RETVAL
(*this)
45
ChildConfig.h
STUB.h
STUB
#define STUB
macro to stub a void function.
Definition:
STUB.h:33
STUB_RETVAL
#define STUB_RETVAL(x)
Definition:
STUB.h:41
Helper::ChildConfig::ChildConfig
ChildConfig()
Definition:
ChildConfig.cc:19
Helper::ChildConfig::needNew
int needNew() const
Definition:
ChildConfig.cc:59
globals.h
Helper
helper protocol primitives
Definition:
helper.h:39
squid.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:
il
...
full list
FTP Package Archive