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 
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 
43 void Helper::ChildConfig::parseConfig() STUB
44 Helper::ChildConfig & Helper::ChildConfig::updateLimits(const Helper::ChildConfig &) STUB_RETVAL(*this)
45 
#define STUB_RETVAL(x)
Definition: STUB.h:42
int needNew() const
Definition: ChildConfig.cc:60
helper protocol primitives
Definition: ChildConfig.h:12
#define STUB
macro to stub a void function.
Definition: STUB.h:34

 

Introduction

Documentation

Support

Miscellaneous