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

Global Locking Routines


Typedefs

typedef apr_global_mutex_t apr_global_mutex_t

Functions

 APR_DECLARE (apr_status_t) apr_global_mutex_create(apr_global_mutex_t **mutex
 APR_POOL_DECLARE_ACCESSOR (global_mutex)

Variables

const char * fname
const char apr_lockmech_e mech
const char apr_lockmech_e
apr_pool_t
pool

Typedef Documentation

typedef struct apr_global_mutex_t apr_global_mutex_t
 

Opaque global mutex structure.

Definition at line 46 of file apr_global_mutex.h.


Function Documentation

APR_DECLARE apr_status_t   ) 
 

Create and initialize a mutex that can be used to synchronize both processes and threads. Note: There is considerable overhead in using this API if only cross-process or cross-thread mutual exclusion is required. See apr_proc_mutex.h and apr_thread_mutex.h for more specialized lock routines.

Parameters:
mutex the memory address where the newly created mutex will be stored.
fname A file name to use if the lock mechanism requires one. This argument should always be provided. The lock code itself will determine if it should be used.
mech The mechanism to use for the interprocess lock, if any; one of
            APR_LOCK_FCNTL
            APR_LOCK_FLOCK
            APR_LOCK_SYSVSEM
            APR_LOCK_POSIXSEM
            APR_LOCK_PROC_PTHREAD
            APR_LOCK_DEFAULT     pick the default mechanism for the platform
 
pool the pool from which to allocate the mutex.
Warning:
Check APR_HAS_foo_SERIALIZE defines to see if the platform supports APR_LOCK_foo. Only APR_LOCK_DEFAULT is portable.

Definition at line 24 of file netware/dso.c.

APR_POOL_DECLARE_ACCESSOR global_mutex   ) 
 

Get the pool used by this global_mutex.

Returns:
apr_pool_t the pool


Variable Documentation

const char* fname
 

Definition at line 92 of file apr_global_mutex.h.

const char apr_lockmech_e mech
 

Definition at line 75 of file apr_global_mutex.h.

Referenced by AP_DECLARE().

const char apr_pool_t* pool
 

Definition at line 92 of file apr_global_mutex.h.