First page Back Continue Last page Overview Graphics
Atomic variables
Useful when the shared resource is an integer value
Even an instruction like n++ is not guaranteed to be atomic on all processors!
Header
Type
atomic_t
contains a signed integer (at least 24 bits)
Atomic operations (main ones)