Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

k32s kAtomic32s_Exchange | ( | kAtomic32s * | atomic,
|  | k32s | value
| ) |  |

Exchanges the value of an atomic variable.

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

Parameters

  atomic | Pointer to atomic variable.
  value | New atomic value.

Returns
  Previous atomic value.