]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/stub_HelperChildConfig.cc
2 #include "HelperChildConfig.h"
7 HelperChildConfig::HelperChildConfig(const unsigned int m
):
17 HelperChildConfig::needNew() const
19 /* during the startup and reconfigure use our special amount... */
20 if (starting_up
|| reconfiguring
) return n_startup
;
22 /* keep a minimum of n_idle helpers free... */
23 if ( (n_active
+ n_idle
) < n_max
) return n_idle
;
25 /* dont ever start more than n_max processes. */
26 return (n_max
- n_active
);
30 HelperChildConfig::parseConfig()
32 fprintf(stderr
, "HelperChildConfig::parseConfig not implemented.");