Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
ap_mpm.h File Reference

Apache Multi-Processing Module library. More...

#include "apr_thread_proc.h"
#include "httpd.h"
#include "scoreboard.h"
Include dependency graph for ap_mpm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#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_MPMQ_IS_ASYNC   14
 
#define AP_MPMQ_GENERATION   15
 
#define AP_MPMQ_HAS_SERF   16
 
#define AP_MPMQ_CAN_SUSPEND   17
 
#define AP_MPMQ_CAN_POLL   18
 
#define AP_MONCONTROL(x)
 

Typedefs

typedef voidap_mpm_callback_fn_t )(void *baton)
 
typedef enum mpm_child_status mpm_child_status
 

Enumerations

enum  mpm_child_status { MPM_CHILD_STARTED, MPM_CHILD_EXITED, MPM_CHILD_LOST_SLOT }
 

Functions

int mpm (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)
 
apr_status_t ap_mpm_query (int query_code, int *result)
 
apr_status_t ap_mpm_resume_suspended (conn_rec *c)
 
apr_status_t ap_mpm_register_timed_callback (apr_time_t t, ap_mpm_callback_fn_t *cbfn, void *baton)
 
apr_status_t ap_mpm_register_poll_callback (apr_array_header_t *pfds, ap_mpm_callback_fn_t *cbfn, void *baton)
 
apr_status_t ap_mpm_register_poll_callback_timeout (apr_array_header_t *pfds, ap_mpm_callback_fn_t *cbfn, ap_mpm_callback_fn_t *tofn, void *baton, apr_time_t timeout)
 
apr_status_t ap_mpm_unregister_poll_callback (apr_array_header_t *pfds)
 
void child_status (server_rec *s, pid_t pid, ap_generation_t gen, int slot, mpm_child_status state)
 
void end_generation (server_rec *s, ap_generation_t gen)
 

Detailed Description

Apache Multi-Processing Module library.