}
const int
-HelperChildConfig::needNew() const {
+HelperChildConfig::needNew() const
+{
/* during the startup and reconfigure use our special amount... */
if (starting_up || reconfiguring) return n_startup;
* Some derived from a helper children configuration option,
* some from runtime stats on the currently active children.
*/
-class HelperChildConfig {
+class HelperChildConfig
+{
public:
HelperChildConfig();
HelperChildConfig(const unsigned int m, const unsigned int s, const unsigned int i, const unsigned int cc);
typedef void HLPSCB(void *, void *lastserver, char *buf);
-class helper {
+class helper
+{
public:
inline helper(const char *name) : cmdline(NULL), id_name(name) {};
~helper();
CBDATA_CLASS2(helper);
};
-class statefulhelper : public helper {
+class statefulhelper : public helper
+{
public:
inline statefulhelper(const char *name) : helper(name) {};
inline ~statefulhelper() {};
/*
* Fields shared between stateless and stateful helper servers.
*/
-class HelperServerBase {
+class HelperServerBase
+{
public:
int index;
int pid;
dlink_node link;
};
-class helper_server : public HelperServerBase {
+class helper_server : public HelperServerBase
+{
public:
MemBuf *wqueue;
MemBuf *writebuf;
class helper_stateful_request;
-class helper_stateful_server : public HelperServerBase {
+class helper_stateful_server : public HelperServerBase
+{
public:
/* MemBuf wqueue; */
/* MemBuf writebuf; */
}
const int
-HelperChildConfig::needNew() const {
+HelperChildConfig::needNew() const
+{
/* during the startup and reconfigure use our special amount... */
if (starting_up || reconfiguring) return n_startup;