Lines Matching refs:sc
32 simple_core_t *sc = simple_core_get();
34 sc->mpm_state = AP_MPMQ_RUNNING;
37 sc->mpm_state = AP_MPMQ_STOPPING;
41 return simple_main_loop(sc);
46 simple_core_t *sc = simple_core_get();
60 *result = sc->procmgr.proc_count;
63 *result = sc->procmgr.proc_count;
66 *result = sc->procmgr.thread_count;
69 *result = sc->procmgr.thread_count;
72 *result = sc->procmgr.proc_count;
75 *result = sc->procmgr.proc_count;
79 *result = sc->procmgr.thread_count;
82 *result = sc->procmgr.max_requests_per_child;
85 *result = sc->procmgr.proc_count;
88 *result = sc->mpm_state;
129 simple_core_t *sc;
140 sc = simple_core_get();
142 sc->restart_num++;
147 sc->run_foreground = 1;
148 sc->run_single_process = 1;
151 sc->run_foreground = ap_exists_config_define("FOREGROUND");
154 if (sc->restart_num == 2) {
156 if (sc->run_foreground) {
166 sc->run_foreground ? "FOREGROUND" : "DAEMONIZE");
178 simple_core_t *sc = simple_core_get();
180 if (sc->procmgr.proc_count > SIMPLE_MAX_PROC) {
187 if (sc->procmgr.proc_count < SIMPLE_MIN_PROC) {
194 if (sc->procmgr.thread_count > SIMPLE_MAX_THREADS) {
201 if (sc->procmgr.thread_count < SIMPLE_MIN_THREADS) {
244 simple_core_t *sc = simple_core_get();
251 sc->procmgr.thread_count = atoi(arg);