Squid Web Cache
master
Loading...
Searching...
No Matches
stub_HelperChildConfig.cc
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
#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:34
STUB_RETVAL
#define STUB_RETVAL(x)
Definition
STUB.h:42
Helper::ChildConfig::ChildConfig
ChildConfig()
Definition
ChildConfig.cc:20
Helper::ChildConfig::needNew
int needNew() const
Definition
ChildConfig.cc:60
globals.h
Helper
helper protocol primitives
Definition
helper.h:39
squid.h
squid
src
tests
stub_HelperChildConfig.cc
Generated by
1.9.8