-
Notifications
You must be signed in to change notification settings - Fork 55
MTY_Atomic64Add
chrisd1100 edited this page Aug 25, 2022
·
1 revision
Add to a 64-bit integer atomically.
All atomic operations in libmatoya
create a full memory barrier.
int64_t MTY_Atomic64Add(
MTY_Atomic64 * atomic,
int64_t value
);
atomic
(MTY_Atomic64 *
)
An MTY_Atomic64
.
value
(int64_t
)
Value to atomically add. This value can be negative, effectively performing subtraction.
int64_t
The result of the addition.