Multi-Processing Module library
[Apache Core]


マクロ定義

#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_MONCONTROL(x)

関数

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)

関数

int ap_graceful_stop_signalled ( void   ) 

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

戻り値:
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.

引数:
query_code One of APM_MPMQ_*
result A location to place the result of the query
戻り値:
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.

引数:
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.
戻り値:
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

引数:
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.


Apacheに対してSun Jul 19 22:05:27 2009に生成されました。  doxygen 1.4.7