]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/stub_HelperChildConfig.cc
3 #include "HelperChildConfig.h"
5 #define STUB_API "stub_HelperChildconfig.cc"
6 #include "tests/STUB.h"
10 HelperChildConfig::HelperChildConfig(const unsigned int m
):
20 HelperChildConfig::needNew() const
22 /* during the startup and reconfigure use our special amount... */
23 if (starting_up
|| reconfiguring
) return n_startup
;
25 /* keep a minimum of n_idle helpers free... */
26 if ( (n_active
+ n_idle
) < n_max
) return n_idle
;
28 /* dont ever start more than n_max processes. */
29 return (n_max
- n_active
);
32 void HelperChildConfig::parseConfig() STUB