Skip to content

MTY_Atomic32Get

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Get a 32-bit integer atomically.

All atomic operations in libmatoya create a full memory barrier.

int32_t MTY_Atomic32Get(
    MTY_Atomic32 * atomic
);

Parameters

atomic (MTY_Atomic32 *)

An MTY_Atomic32.

Return value

int32_t

32-bit integer atomically.

Platform support

Windows   macOS   Android   Linux  

See also

Module: Thread

Clone this wiki locally