Atomic counter class.
More...
#include <atomic.h>
|
void | clear () volatile |
|
| counter (atomic_t initial=0) |
|
atomic_t | fetch_add (atomic_t offset=1) volatile |
|
atomic_t | fetch_release () volatile |
|
atomic_t | fetch_retain () volatile |
|
atomic_t | fetch_sub (atomic_t offset=1) volatile |
|
atomic_t | get () volatile |
|
| operator atomic_t () volatile |
|
atomic_t | operator* () volatile |
|
atomic_t | operator++ () volatile |
|
atomic_t | operator+= (atomic_t offset) volatile |
|
atomic_t | operator-- () volatile |
|
atomic_t | operator-= (atomic_t offset) volatile |
|
Atomic counter class.
Can be used to manipulate value of an atomic counter without requiring explicit thread locking.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
Definition at line 60 of file atomic.h.
◆ operator atomic_t()
ucommon::Atomic::counter::operator atomic_t |
( |
| ) |
volatile |
|
inline |
◆ operator*()
atomic_t ucommon::Atomic::counter::operator* |
( |
| ) |
volatile |
|
inline |
The documentation for this class was generated from the following file:
- /builddir/build/BUILD/ucommon-7.0.0-build/ucommon-7.0.0/inc/ucommon/atomic.h