Rename atomic store and load functions

The atomic store and load functions are now called atomic_store_X and
atomic_load_X where X is one of int32, int64 or uint64.
This commit is contained in:
Markus Mäkelä
2017-04-19 16:55:14 +03:00
committed by Markus Mäkelä
parent f91d415be1
commit 19cf8c489e
3 changed files with 20 additions and 20 deletions

View File

@ -45,9 +45,9 @@ uint64_t atomic_add_uint64(uint64_t *variable, int64_t value);
* @param variable Pointer the the variable to load from
* @return The stored value
*/
int atomic_read(int *variable);
int64_t atomic_read_int64(int64_t *variable);
uint64_t atomic_read_uint64(uint64_t *variable);
int atomic_load_int32(int *variable);
int64_t atomic_load_int64(int64_t *variable);
uint64_t atomic_load_uint64(uint64_t *variable);
/**
* Implementation of an atomic store operation for the GCC environment.
@ -58,9 +58,9 @@ uint64_t atomic_read_uint64(uint64_t *variable);
* @param variable Pointer the the variable to store to
* @param value Value to be stored
*/
void atomic_write(int *variable, int value);
void atomic_write_int64(int64_t *variable, int64_t value);
void atomic_write_uint64(uint64_t *variable, uint64_t value);
void atomic_store_int32(int *variable, int value);
void atomic_store_int64(int64_t *variable, int64_t value);
void atomic_store_uint64(uint64_t *variable, uint64_t value);
/**
* @brief Impose a full memory barrier