Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
Public Member Functions
kAtomicPointer Struct Reference
kApi/Threads

## Description

Represents an atomically-accessed pointer.

See also
  kAtomic, kPointer

Inheritance diagram for kAtomicPointer:

## Public Member Functions
kBool | kAtomicPointer_CompareExchange (kAtomicPointer *atomic, kPointer oldValue, kPointer value)
| Conditionally exchanges the value of an atomic variable. More...
kPointer | kAtomicPointer_Exchange (kAtomicPointer *atomic, kPointer value)
| Exchanges the value of an atomic variable. More...
kPointer | kAtomicPointer_Get (kAtomicPointer *atomic)
| Gets the current value of an atomic variable. More...
Public Member Functions inherited from kValue
kBool | kValue_Equals (kType type, const void *value, const void *other)
| Determines whether a value is equal to another value. More...
kSize | kValue_HashCode (kType type, const void *value)
| Gets a hash code representing the state of this value. More...
void | kValue_Import (kType type, void *value, const void *source)
| Imports the content of another value into this value. More...

## Related
#define | kAtomicPointer_Init_(ATM, VAL) kxAtomicPointer_Init_(ATM, VAL)
| Initializes a variable of type kAtomicPointer.
#define | kAtomicPointer_Exchange_(ATM, VAL) kxAtomicPointer_Exchange_(ATM, VAL)
| Macro version of kAtomicPointer_Exchange.
#define | kAtomicPointer_CompareExchange_(ATM, OLD, VAL) kxAtomicPointer_CompareExchange_(ATM, OLD, VAL)
| Macro version of kAtomicPointer_CompareExchange.
#define | kAtomicPointer_Get_(ATM) kxAtomicPointer_Get_(ATM)
| Macro version of kAtomicPointer_Get.

The documentation for this struct was generated from the following file:

- Threads/kAtomic.h