FreeSWITCH API Documentation
1.7.0
|
Typedefs | |
typedef uint32_t | switch_atomic_t |
Functions | |
switch_status_t | switch_atomic_init (switch_memory_pool_t *pool) |
uint32_t | switch_atomic_read (volatile switch_atomic_t *mem) |
void | switch_atomic_set (volatile switch_atomic_t *mem, uint32_t val) |
void | switch_atomic_add (volatile switch_atomic_t *mem, uint32_t val) |
void | switch_atomic_inc (volatile switch_atomic_t *mem) |
int | switch_atomic_dec (volatile switch_atomic_t *mem) |
typedef uint32_t switch_atomic_t |
Opaque type used for the atomic operations
Definition at line 380 of file switch_apr.h.
void switch_atomic_add | ( | volatile switch_atomic_t * | mem, |
uint32_t | val | ||
) |
Uses an atomic operation to add the uint32 value to the value at the specified location of memory.
mem | The location of the value to add to. |
val | The uint32 value to add to the value at the memory location. |
Definition at line 1289 of file switch_apr.c.
int switch_atomic_dec | ( | volatile switch_atomic_t * | mem | ) |
Uses an atomic operation to decrement the value at the specified memroy location.
mem | The location of the value to decrement. |
Definition at line 1307 of file switch_apr.c.
void switch_atomic_inc | ( | volatile switch_atomic_t * | mem | ) |
Uses an atomic operation to increment the value at the specified memroy location.
mem | The location of the value to increment. |
Definition at line 1298 of file switch_apr.c.
switch_status_t switch_atomic_init | ( | switch_memory_pool_t * | pool | ) |
Some architectures require atomic operations internal structures to be initialized before use.
pool | The memory pool to use when initializing the structures. |
Definition at line 1266 of file switch_apr.c.
uint32_t switch_atomic_read | ( | volatile switch_atomic_t * | mem | ) |
Uses an atomic operation to read the uint32 value at the location specified by mem.
mem | The location of memory which stores the value to read. |
Definition at line 1271 of file switch_apr.c.
Referenced by switch_xml_config_parse_event().
void switch_atomic_set | ( | volatile switch_atomic_t * | mem, |
uint32_t | val | ||
) |
Uses an atomic operation to set a uint32 value at a specified location of memory.
mem | The location of memory to set. |
val | The uint32 value to set at the memory location. |
Definition at line 1280 of file switch_apr.c.
Referenced by switch_xml_config_parse_event().