Apache 1.3 API Documentation

Routine ap_acquire_mutex

Definition:

int ap_acquire_mutex(mutex *mutex_id);
     

Usage example:

static mutex *alloc_mutex = NULL; 
(void) ap_acquire_mutex(alloc_mutex);
     

Acquires a mutex. Only actually does anything on multithreaded platforms.

Returns MULTI_OK, MULTI_ERR or MULTI_TIMEOUT.

See also:
ap_create_mutex, ap_destroy_mutex, ap_open_mutex, MULTI_ERR, MULTI_OK, MULTI_TIMEOUT, mutex

Previous: (none) Next: ap_add_cgi_vars

Table of Contents (Routines, Structures, Data Cells, Constants)