Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

void kAtomicPointer_Init | ( | kAtomicPointer * | atomic,
|  | kPointer | value
| ) |  |

Initializes an atomic variable with a particular value.

This method is not thread-safe. It can be used for first initialization of an atomic value, before subsequent concurrent access.

Parameters

  atomic | Pointer to atomic variable.
  value | Initial value.