diff options
Diffstat (limited to 'include/apr_atomic.h')
-rw-r--r-- | include/apr_atomic.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/apr_atomic.h b/include/apr_atomic.h index 714780fe5..60e4bb54d 100644 --- a/include/apr_atomic.h +++ b/include/apr_atomic.h @@ -123,6 +123,14 @@ APR_DECLARE(apr_uint32_t) apr_atomic_xchg32(volatile apr_uint32_t *mem, apr_uint */ APR_DECLARE(void*) apr_atomic_casptr(volatile void **mem, void *with, const void *cmp); +/** + * exchange a pair of pointer values + * @param mem pointer to the pointer + * @param with what to swap it with + * @return the old value of the pointer + */ +APR_DECLARE(void*) apr_atomic_xchgptr(volatile void **mem, void *with); + /** @} */ #ifdef __cplusplus |