cf_atomic_add¶
Category: atomic
GitHub: cute_multithreading.h
Atomically adds addend to atomic and returns the old value from atomic.
| Parameters | Description |
|---|---|
| atomic | The integer to atomically manipulate. |
| addend | A value to atomically add to atomic. |
Remarks¶
Atomics are an advanced topic. You've been warned! Beej has a good article on atomics.
Related Pages¶
cf_atomic_zero
cf_atomic_ptr_cas
cf_atomic_set
cf_atomic_get
cf_atomic_cas
cf_atomic_ptr_set
cf_atomic_ptr_get