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

apr_anylock.h File Reference

APR-Util transparent any lock flavor wrapper. More...

#include "apr_proc_mutex.h"
#include "apr_thread_mutex.h"
#include "apr_thread_rwlock.h"

Include dependency graph for apr_anylock.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define APR_ANYLOCK_LOCK(lck)
#define APR_ANYLOCK_TRYLOCK(lck)
#define APR_ANYLOCK_UNLOCK(lck)

Typedefs

typedef apr_anylock_t apr_anylock_t


Detailed Description

APR-Util transparent any lock flavor wrapper.

Definition in file apr_anylock.h.


Define Documentation

#define APR_ANYLOCK_LOCK lck   ) 
 

Value:

(((lck)->type == apr_anylock_none)         \
      ? APR_SUCCESS                              \
          : (((lck)->type == apr_anylock_procmutex)    \
              ? apr_proc_mutex_lock((lck)->lock.pm)      \
                      : APR_EINVAL))

Definition at line 66 of file apr_anylock.h.

Referenced by ap_buffered_log_writer(), and APU_DECLARE().

#define APR_ANYLOCK_TRYLOCK lck   ) 
 

Value:

(((lck)->type == apr_anylock_none)            \
      ? APR_SUCCESS                                 \
          : (((lck)->type == apr_anylock_procmutex)       \
              ? apr_proc_mutex_trylock((lck)->lock.pm)      \
                          : APR_EINVAL))

Definition at line 93 of file apr_anylock.h.

#define APR_ANYLOCK_UNLOCK lck   ) 
 

Value:

(((lck)->type == apr_anylock_none)         \
      ? APR_SUCCESS                              \
          : (((lck)->type == apr_anylock_procmutex)    \
              ? apr_proc_mutex_unlock((lck)->lock.pm)    \
                      : APR_EINVAL))

Definition at line 119 of file apr_anylock.h.

Referenced by ap_buffered_log_writer(), and APU_DECLARE().


Typedef Documentation

typedef struct apr_anylock_t apr_anylock_t
 

Structure that may contain any APR lock type