Functions | |
apr_status_t | apr_atomic_init (apr_pool_t *p) |
apr_uint32_t | apr_atomic_read (volatile apr_atomic_t *mem) |
void | apr_atomic_set (volatile apr_atomic_t *mem, apr_uint32_t val) |
void | apr_atomic_add (volatile apr_atomic_t *mem, apr_uint32_t val) |
void | apr_atomic_inc (volatile apr_atomic_t *mem) |
int | apr_atomic_dec (volatile apr_atomic_t *mem) |
apr_uint32_t | apr_atomic_cas (volatile apr_uint32_t *mem, long with, long cmp) |
void * | apr_atomic_casptr (volatile void **mem, void *with, const void *cmp) |
Variables | |
typedef | apr_atomic_t |
|
Add 'val' to the atomic variable
|
|
compare the atomic's value with cmp. If they are the same swap the value with 'with'
|
|
compare the pointer's value with cmp. If they are the same swap the value with 'with'
|
|
decrement the atomic variable by 1
|
|
increment the atomic variable by 1
|
|
this function is required on some platforms to initialize the atomic operation's internal structures
|
|
read the value stored in a atomic variable
|
|
set the value for atomic.
|
|
structure for holding a atomic value. this number >only< has a 24 bit size on some platforms |