Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kPointer kAtomicPointer_Exchange ( kAtomicPointer atomic,
kPointer  value 
)

Exchanges the value of an atomic variable.

This method is thread-safe. Implements a full memory barrier.

Parameters
atomicPointer to atomic variable.
valueNew atomic value.
Returns
Previous atomic value.