Tachyon (current)
Current Main Branch
|
atomic int structure with padding to prevent false sharing More...
#include <threads.h>
Data Fields | |
int | padding1 [8] |
Pad to avoid false sharing, cache aliasing. More... | |
rt_mutex_t | lock |
Mutex lock for the structure. More... | |
int | val |
Integer value to be atomically manipulated. More... | |
int | padding2 [8] |
Pad to avoid false sharing, cache aliasing. More... | |
atomic int structure with padding to prevent false sharing
rt_mutex_t atomic_int_struct::lock |
Mutex lock for the structure.
Definition at line 180 of file threads.h.
Referenced by rt_atomic_int_add_and_fetch(), rt_atomic_int_destroy(), rt_atomic_int_fetch_and_add(), rt_atomic_int_get(), rt_atomic_int_init(), and rt_atomic_int_set().
int atomic_int_struct::padding1[8] |
int atomic_int_struct::padding2[8] |
int atomic_int_struct::val |
Integer value to be atomically manipulated.
Definition at line 188 of file threads.h.
Referenced by rt_atomic_int_add_and_fetch(), rt_atomic_int_fetch_and_add(), rt_atomic_int_get(), rt_atomic_int_init(), and rt_atomic_int_set().