mpm.h revision 8b6db5ee2c727568cccb16a035c90ab970d310fe
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding/* Copyright 2001-2004 The Apache Software Foundation
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding *
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * Licensed under the Apache License, Version 2.0 (the "License");
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * you may not use this file except in compliance with the License.
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * You may obtain a copy of the License at
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding *
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * http://www.apache.org/licenses/LICENSE-2.0
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding *
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * Unless required by applicable law or agreed to in writing, software
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * distributed under the License is distributed on an "AS IS" BASIS,
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * See the License for the specific language governing permissions and
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding * limitations under the License.
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding */
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding#include "scoreboard.h"
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding#ifndef APACHE_MPM_THREADED_H
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding#define APACHE_MPM_THREADED_H
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding#define THREADED_MPM
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding#define MPM_NAME "NetWare_Threaded"
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding/*#define AP_MPM_WANT_RECLAIM_CHILD_PROCESSES
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding #define AP_MPM_WANT_WAIT_OR_TIMEOUT
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding #define AP_MPM_WANT_PROCESS_CHILD_STATUS
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding #define AP_MPM_WANT_SET_PIDFILE
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding #define AP_MPM_WANT_SET_SCOREBOARD
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding #define AP_MPM_WANT_SET_LOCKFILE
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding*/
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding#define AP_MPM_WANT_SET_MAX_REQUESTS
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding#define AP_MPM_WANT_SET_MAX_MEM_FREE
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding#define AP_MPM_WANT_SET_STACKSIZE
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding#define AP_MPM_DISABLE_NAGLE_ACCEPTED_SOCK
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding/*#define AP_MPM_WANT_SET_COREDUMPDIR
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding #define AP_MPM_WANT_SET_ACCEPT_LOCK_MECH
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding*/
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding#define MPM_CHILD_PID(i) (ap_scoreboard_image->parent[i].pid)
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding#define MPM_NOTE_CHILD_KILLED(i) (MPM_CHILD_PID(i) = 0)
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingextern int ap_threads_per_child;
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingextern int ap_max_workers_limit;
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fieldingextern server_rec *ap_server_conf;
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding#endif /* APACHE_MPM_THREADED_H */
09fe0b69d3d1e8c8041c9ce99ee77b8b44b5e3b1fielding