|
Zen API
|
| kPointer kAtomicPointer_Exchange | ( | kAtomicPointer * | atomic, |
| kPointer | value | ||
| ) |
Exchanges the value of an atomic variable.
This method is thread-safe. Implements a full memory barrier.
| atomic | Pointer to atomic variable. |
| value | New atomic value. |