00001 /* Licensed to the Apache Software Foundation (ASF) under one or more 00002 * contributor license agreements. See the NOTICE file distributed with 00003 * this work for additional information regarding copyright ownership. 00004 * The ASF licenses this file to You under the Apache License, Version 2.0 00005 * (the "License"); you may not use this file except in compliance with 00006 * the License. You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00026 #include "scoreboard.h" 00027 00028 #ifndef APACHE_MPM_THREADED_H 00029 #define APACHE_MPM_THREADED_H 00030 00031 #define THREADED_MPM 00032 00033 #define MPM_NAME "NetWare_Threaded" 00034 00035 /*#define AP_MPM_WANT_RECLAIM_CHILD_PROCESSES 00036 #define AP_MPM_WANT_WAIT_OR_TIMEOUT 00037 #define AP_MPM_WANT_PROCESS_CHILD_STATUS 00038 #define AP_MPM_WANT_SET_PIDFILE 00039 #define AP_MPM_WANT_SET_SCOREBOARD 00040 #define AP_MPM_WANT_SET_LOCKFILE 00041 */ 00042 #define AP_MPM_WANT_SET_MAX_REQUESTS 00043 #define AP_MPM_WANT_SET_MAX_MEM_FREE 00044 #define AP_MPM_WANT_SET_STACKSIZE 00045 #define AP_MPM_DISABLE_NAGLE_ACCEPTED_SOCK 00046 /*#define AP_MPM_WANT_SET_COREDUMPDIR 00047 #define AP_MPM_WANT_SET_ACCEPT_LOCK_MECH 00048 */ 00049 00050 #define MPM_CHILD_PID(i) (ap_scoreboard_image->parent[i].pid) 00051 #define MPM_NOTE_CHILD_KILLED(i) (MPM_CHILD_PID(i) = 0) 00052 00053 extern int ap_threads_per_child; 00054 extern int ap_max_workers_limit; 00055 extern server_rec *ap_server_conf; 00056 00057 #endif /* APACHE_MPM_THREADED_H */ 00058