kernel: atomic_*() functions rework
* No need for the atomically changed variables to be declared as volatile. * Drop support for atomically getting and setting unaligned data. * Introduce atomic_get_and_set[64]() which works the same as atomic_set[64]() used to. atomic_set[64]() does not return the previous value anymore.
This commit is contained in:
@@ -50,6 +50,7 @@
|
||||
// #pragma mark - fssh_atomic.h
|
||||
|
||||
#define atomic_set fssh_atomic_set
|
||||
#define atomic_get_and_Set fssh_atomic_get_and_set
|
||||
#define atomic_test_and_set fssh_atomic_test_and_set
|
||||
#define atomic_add fssh_atomic_add
|
||||
#define atomic_and fssh_atomic_and
|
||||
|
||||
Reference in New Issue
Block a user