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