Main Page | Modules | Namespace List | Data Structures | File List | Data Fields | Globals | Related Pages

ap_mpm.h File Reference

#include "apr_thread_proc.h"

Namespaces

namespace  Multi

Defines

#define AP_MPMQ_NOT_SUPPORTED   0
#define AP_MPMQ_STATIC   1
#define AP_MPMQ_DYNAMIC   2
#define AP_MPMQ_STARTING   0
#define AP_MPMQ_RUNNING   1
#define AP_MPMQ_STOPPING   2
#define AP_MPMQ_MAX_DAEMON_USED   1
#define AP_MPMQ_IS_THREADED   2
#define AP_MPMQ_IS_FORKED   3
#define AP_MPMQ_HARD_LIMIT_DAEMONS   4
#define AP_MPMQ_HARD_LIMIT_THREADS   5
#define AP_MPMQ_MAX_THREADS   6
#define AP_MPMQ_MIN_SPARE_DAEMONS   7
#define AP_MPMQ_MIN_SPARE_THREADS   8
#define AP_MPMQ_MAX_SPARE_DAEMONS   9
#define AP_MPMQ_MAX_SPARE_THREADS   10
#define AP_MPMQ_MAX_REQUESTS_DAEMON   11
#define AP_MPMQ_MAX_DAEMONS   12
#define AP_MPMQ_MPM_STATE   13
#define AP_MONCONTROL(x)

Functions

int ap_mpm_run (apr_pool_t *pconf, apr_pool_t *plog, server_rec *server_conf)
int ap_graceful_stop_signalled (void)
apr_status_t ap_os_create_privileged_process (const request_rec *r, apr_proc_t *newproc, const char *progname, const char *const *args, const char *const *env, apr_procattr_t *attr, apr_pool_t *p)
apr_status_t ap_mpm_query (int query_code, int *result)

Define Documentation

#define AP_MONCONTROL  ) 
 

#define AP_MPMQ_DYNAMIC   2
 

#define AP_MPMQ_HARD_LIMIT_DAEMONS   4
 

#define AP_MPMQ_HARD_LIMIT_THREADS   5
 

#define AP_MPMQ_IS_FORKED   3
 

#define AP_MPMQ_IS_THREADED   2
 

#define AP_MPMQ_MAX_DAEMON_USED   1
 

#define AP_MPMQ_MAX_DAEMONS   12
 

#define AP_MPMQ_MAX_REQUESTS_DAEMON   11
 

#define AP_MPMQ_MAX_SPARE_DAEMONS   9
 

#define AP_MPMQ_MAX_SPARE_THREADS   10
 

#define AP_MPMQ_MAX_THREADS   6
 

#define AP_MPMQ_MIN_SPARE_DAEMONS   7
 

#define AP_MPMQ_MIN_SPARE_THREADS   8
 

#define AP_MPMQ_MPM_STATE   13
 

#define AP_MPMQ_NOT_SUPPORTED   0
 

#define AP_MPMQ_RUNNING   1
 

#define AP_MPMQ_STARTING   0
 

#define AP_MPMQ_STATIC   1
 

#define AP_MPMQ_STOPPING   2
 


Function Documentation

int ap_graceful_stop_signalled void   ) 
 

predicate indicating if a graceful stop has been requested ... used by the connection loop

Returns:
1 if a graceful stop has been requested, 0 otherwise int ap_graceful_stop_signalled(*void)

apr_status_t ap_mpm_query int  query_code,
int result
 

Query a property of the current MPM.

Parameters:
query_code One of APM_MPMQ_*
result A location to place the result of the query
Returns:
APR_SUCCESS or APR_ENOTIMPL int ap_mpm_query(int query_code, int *result)

int ap_mpm_run apr_pool_t *  pconf,
apr_pool_t *  plog,
server_rec server_conf
 

This is the function that MPMs must create. This function is responsible for controlling the parent and child processes. It will run until a restart/shutdown is indicated.

Parameters:
pconf the configuration pool, reset before the config file is read
plog the log pool, reset after the config file is read
server_conf the global server config.
Returns:
1 for shutdown 0 otherwise. int ap_mpm_run(apr_pool_t *pconf, apr_pool_t *plog, server_rec *server_conf)

apr_status_t ap_os_create_privileged_process const request_rec r,
apr_proc_t *  newproc,
const char *  progname,
const char *const *  args,
const char *const *  env,
apr_procattr_t *  attr,
apr_pool_t *  p
 

Spawn a process with privileges that another module has requested

Parameters:
r The request_rec of the current request
newproc The resulting process handle.
progname The program to run
const_args the arguments to pass to the new program. The first one should be the program name.
env The new environment apr_table_t for the new process. This should be a list of NULL-terminated strings.
attr the procattr we should use to determine how to create the new process
p The pool to use.


Generated on Thu Sep 8 10:26:42 2005 for [IBM HTTP Server (powered by Apache)] - by  doxygen 1.4.4