Apache HTTPD
Classes | Macros | Functions | Variables
util_mutex.c File Reference
#include "apr.h"
#include "apr_hash.h"
#include "apr_strings.h"
#include "apr_lib.h"
#include "apr_want.h"
#include "ap_config.h"
#include "httpd.h"
#include "http_main.h"
#include "http_config.h"
#include "http_core.h"
#include "http_log.h"
#include "util_mutex.h"

Go to the source code of this file.

Classes

struct  mutex_cfg_t
 

Macros

#define APR_WANT_STRFUNC
 
#define APLOG_MODULE_INDEX   AP_CORE_MODULE_INDEX
 

Functions

apr_status_t ap_parse_mutex (const char *arg, apr_pool_t *pool, apr_lockmech_e *mutexmech, const char **mutexfile)
 
void ap_mutex_init (apr_pool_t *p)
 
const charap_set_mutex (cmd_parms *cmd, void *dummy, const char *arg)
 
apr_status_t ap_mutex_register (apr_pool_t *pconf, const char *type, const char *default_dir, apr_lockmech_e default_mech, apr_int32_t options)
 
static int mutex_needs_file (apr_lockmech_e mech)
 
static const charget_mutex_filename (apr_pool_t *p, mutex_cfg_t *mxcfg, const char *type, const char *instance_id)
 
static mutex_cfg_tmxcfg_lookup (apr_pool_t *p, const char *type)
 
static void log_bad_create_options (server_rec *s, const char *type)
 
static void log_unknown_type (server_rec *s, const char *type)
 
static void log_create_failure (apr_status_t rv, server_rec *s, const char *type, const char *fname)
 
apr_status_t ap_global_mutex_create (apr_global_mutex_t **mutex, const char **name, const char *type, const char *instance_id, server_rec *s, apr_pool_t *p, apr_int32_t options)
 
apr_status_t ap_proc_mutex_create (apr_proc_mutex_t **mutex, const char **name, const char *type, const char *instance_id, server_rec *s, apr_pool_t *p, apr_int32_t options)
 
void ap_dump_mutexes (apr_pool_t *p, server_rec *s, apr_file_t *out)
 

Variables

static apr_hash_tmxcfg_by_type
 

Macro Definition Documentation

◆ APLOG_MODULE_INDEX

#define APLOG_MODULE_INDEX   AP_CORE_MODULE_INDEX

Definition at line 47 of file util_mutex.c.

◆ APR_WANT_STRFUNC

#define APR_WANT_STRFUNC

Definition at line 28 of file util_mutex.c.

Function Documentation

◆ get_mutex_filename()

static const char * get_mutex_filename ( apr_pool_t p,
mutex_cfg_t mxcfg,
const char type,
const char instance_id 
)
static

Definition at line 292 of file util_mutex.c.

◆ log_bad_create_options()

static void log_bad_create_options ( server_rec s,
const char type 
)
static

Definition at line 374 of file util_mutex.c.

◆ log_create_failure()

static void log_create_failure ( apr_status_t  rv,
server_rec s,
const char type,
const char fname 
)
static

Definition at line 387 of file util_mutex.c.

◆ log_unknown_type()

static void log_unknown_type ( server_rec s,
const char type 
)
static

Definition at line 381 of file util_mutex.c.

◆ mutex_needs_file()

static int mutex_needs_file ( apr_lockmech_e  mech)
static

Definition at line 279 of file util_mutex.c.

◆ mxcfg_lookup()

static mutex_cfg_t * mxcfg_lookup ( apr_pool_t p,
const char type 
)
static

Definition at line 319 of file util_mutex.c.

Variable Documentation

◆ mxcfg_by_type

apr_hash_t* mxcfg_by_type
static

Definition at line 143 of file util_mutex.c.