< Atomic 64-bit integer
More...
#include <atomics.hpp>
|
| AtomicInt64 (int64_t init=0) noexcept |
| Initialize atomic integer.
|
|
int64_t | get () const noexcept |
| Returns value of atomic integer.
|
|
int64_t | set (int64_t newvalue) noexcept |
| Updates atomic integer to a new value and returns it previous value.
|
|
int64_t | changeIf (int64_t comparand, int64_t newvalue) noexcept |
| Compares atomic integer with comparand and set its to newvalue if they match, returns previous value.
|
|
int64_t | operator++ () noexcept |
| Increments atomic integer and returns its current value.
|
|
int64_t | operator++ (int) noexcept |
| Increments atomic integer and returns its previous value.
|
|
int64_t | operator-- () noexcept |
| Decrements atomic integer and returns its current value.
|
|
int64_t | operator-- (int) noexcept |
| Decrements atomic integer and returns its previous value.
|
|
int64_t | operator+= (int64_t value) noexcept |
| Adds number to atomic integer and returns its updated value.
|
|
int64_t | operator-= (int64_t value) noexcept |
| Substracts number to atomic integer and returns its updated value.
|
|
The documentation for this class was generated from the following files: