"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/apr_proc_mutex.h" between
apr-1.6.5.tar.bz2 and apr-1.7.0.tar.bz2

About: APR (Apache Portable Runtime) project offers software libraries that provide a predictable and consistent interface to underlying platform-specific implementations (APR core library).

apr_proc_mutex.h  (apr-1.6.5.tar.bz2):apr_proc_mutex.h  (apr-1.7.0.tar.bz2)
skipping to change at line 29 skipping to change at line 29
/** /**
* @file apr_proc_mutex.h * @file apr_proc_mutex.h
* @brief APR Process Locking Routines * @brief APR Process Locking Routines
*/ */
#include "apr.h" #include "apr.h"
#include "apr_pools.h" #include "apr_pools.h"
#include "apr_errno.h" #include "apr_errno.h"
#include "apr_perms_set.h" #include "apr_perms_set.h"
#include "apr_time.h"
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif /* __cplusplus */ #endif /* __cplusplus */
/** /**
* @defgroup apr_proc_mutex Process Locking Routines * @defgroup apr_proc_mutex Process Locking Routines
* @ingroup APR * @ingroup APR
* @{ * @{
*/ */
skipping to change at line 51 skipping to change at line 52
* Enumerated potential types for APR process locking methods * Enumerated potential types for APR process locking methods
* @warning Check APR_HAS_foo_SERIALIZE defines to see if the platform supports * @warning Check APR_HAS_foo_SERIALIZE defines to see if the platform supports
* APR_LOCK_foo. Only APR_LOCK_DEFAULT is portable. * APR_LOCK_foo. Only APR_LOCK_DEFAULT is portable.
*/ */
typedef enum { typedef enum {
APR_LOCK_FCNTL, /**< fcntl() */ APR_LOCK_FCNTL, /**< fcntl() */
APR_LOCK_FLOCK, /**< flock() */ APR_LOCK_FLOCK, /**< flock() */
APR_LOCK_SYSVSEM, /**< System V Semaphores */ APR_LOCK_SYSVSEM, /**< System V Semaphores */
APR_LOCK_PROC_PTHREAD, /**< POSIX pthread process-based locking */ APR_LOCK_PROC_PTHREAD, /**< POSIX pthread process-based locking */
APR_LOCK_POSIXSEM, /**< POSIX semaphore process-based locking */ APR_LOCK_POSIXSEM, /**< POSIX semaphore process-based locking */
APR_LOCK_DEFAULT /**< Use the default process lock */ APR_LOCK_DEFAULT, /**< Use the default process lock */
APR_LOCK_DEFAULT_TIMED /**< Use the default process timed lock */
} apr_lockmech_e; } apr_lockmech_e;
/** Opaque structure representing a process mutex. */ /** Opaque structure representing a process mutex. */
typedef struct apr_proc_mutex_t apr_proc_mutex_t; typedef struct apr_proc_mutex_t apr_proc_mutex_t;
/* Function definitions */ /* Function definitions */
/** /**
* Create and initialize a mutex that can be used to synchronize processes. * Create and initialize a mutex that can be used to synchronize processes.
* @param mutex the memory address where the newly created mutex will be * @param mutex the memory address where the newly created mutex will be
skipping to change at line 117 skipping to change at line 119
/** /**
* Attempt to acquire the lock for the given mutex. If the mutex has already * Attempt to acquire the lock for the given mutex. If the mutex has already
* been acquired, the call returns immediately with APR_EBUSY. Note: it * been acquired, the call returns immediately with APR_EBUSY. Note: it
* is important that the APR_STATUS_IS_EBUSY(s) macro be used to determine * is important that the APR_STATUS_IS_EBUSY(s) macro be used to determine
* if the return value was APR_EBUSY, for portability reasons. * if the return value was APR_EBUSY, for portability reasons.
* @param mutex the mutex on which to attempt the lock acquiring. * @param mutex the mutex on which to attempt the lock acquiring.
*/ */
APR_DECLARE(apr_status_t) apr_proc_mutex_trylock(apr_proc_mutex_t *mutex); APR_DECLARE(apr_status_t) apr_proc_mutex_trylock(apr_proc_mutex_t *mutex);
/** /**
* Attempt to acquire the lock for the given mutex until timeout expires.
* If the acquisition time outs, the call returns with APR_TIMEUP.
* @param mutex the mutex on which to attempt the lock acquiring.
* @param timeout the relative timeout (microseconds).
* @note A negative or nul timeout means immediate attempt, returning
* APR_TIMEUP without blocking if it the lock is already acquired.
*/
APR_DECLARE(apr_status_t) apr_proc_mutex_timedlock(apr_proc_mutex_t *mutex,
apr_interval_time_t timeout);
/**
* Release the lock for the given mutex. * Release the lock for the given mutex.
* @param mutex the mutex from which to release the lock. * @param mutex the mutex from which to release the lock.
*/ */
APR_DECLARE(apr_status_t) apr_proc_mutex_unlock(apr_proc_mutex_t *mutex); APR_DECLARE(apr_status_t) apr_proc_mutex_unlock(apr_proc_mutex_t *mutex);
/** /**
* Destroy the mutex and free the memory associated with the lock. * Destroy the mutex and free the memory associated with the lock.
* @param mutex the mutex to destroy. * @param mutex the mutex to destroy.
*/ */
APR_DECLARE(apr_status_t) apr_proc_mutex_destroy(apr_proc_mutex_t *mutex); APR_DECLARE(apr_status_t) apr_proc_mutex_destroy(apr_proc_mutex_t *mutex);
 End of changes. 3 change blocks. 
1 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)