]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/stub_HelperChildConfig.cc
2 #include "HelperChildConfig.h"
7 HelperChildConfig::HelperChildConfig(const unsigned int m
, const unsigned int s
, const unsigned int i
, const unsigned int cc
) :
16 HelperChildConfig::~HelperChildConfig()
20 HelperChildConfig::operator =(const HelperChildConfig
&rhs
)
22 memcpy(this, &rhs
, sizeof(HelperChildConfig
));
27 HelperChildConfig::needNew() const
29 /* during the startup and reconfigure use our special amount... */
30 if (starting_up
|| reconfiguring
) return n_startup
;
32 /* keep a minimum of n_idle helpers free... */
33 if ( (n_active
+ n_idle
) < n_max
) return n_idle
;
35 /* dont ever start more than n_max processes. */
36 return (n_max
- n_active
);
40 HelperChildConfig::parseConfig()
42 fprintf(stderr
, "HelperChildConfig::parseConfig not implemented.");