#include <atomic.hpp>
|
| atomic () |
|
| atomic (value_type value) |
|
value_type | get () |
|
bool | is_free (void) const |
|
void | store (value_type v, MemoryOrder::MemoryOrder_t order=MemoryOrder::SeqCst) |
|
value_type | load (MemoryOrder::MemoryOrder_t order=MemoryOrder::SeqCst) const |
|
value_type | exchange (value_type v, MemoryOrder::MemoryOrder_t order=MemoryOrder::SeqCst) |
|
bool | compare_exchange (value_type &expected, T desired, bool b, MemoryOrder::MemoryOrder_t order=MemoryOrder::SeqCst) |
|
value_type | fetch_add (T v, MemoryOrder::MemoryOrder_t order=MemoryOrder::SeqCst) |
|
value_type | fetch_sub (value_type v, MemoryOrder::MemoryOrder_t order=MemoryOrder::SeqCst) |
|
value_type | fetch_and (value_type v, MemoryOrder::MemoryOrder_t order=MemoryOrder::SeqCst) |
|
value_type | fetch_or (value_type v, MemoryOrder::MemoryOrder_t order=MemoryOrder::SeqCst) |
|
value_type | fetch_xor (value_type v, MemoryOrder::MemoryOrder_t order=MemoryOrder::SeqCst) |
|
value_type | add_fetch (value_type v, MemoryOrder::MemoryOrder_t order=MemoryOrder::SeqCst) |
|
value_type | sub_fetch (value_type v, MemoryOrder::MemoryOrder_t order=MemoryOrder::SeqCst) |
|
value_type | and_fetch (value_type v, MemoryOrder::MemoryOrder_t order=MemoryOrder::SeqCst) |
|
value_type | or_fetch (value_type v, MemoryOrder::MemoryOrder_t order=MemoryOrder::SeqCst) |
|
value_type | xor_fetch (value_type v, MemoryOrder::MemoryOrder_t order=MemoryOrder::SeqCst) |
|
void | swap (self_type &other) |
|
| operator value_type (void) const |
|
value_type | operator= (value_type v) |
|
value_type | operator++ (int) |
|
value_type | operator-- (int) |
|
value_type | operator++ (void) |
|
value_type | operator-- (void) |
|
value_type | operator+= (value_type v) |
|
value_type | operator-= (value_type v) |
|
value_type | operator &= (value_type v) |
|
value_type | operator|= (value_type v) |
|
value_type | operator^= (value_type v) |
|
template<typename T>
class std::atomic< T >
◆ self_type
◆ value_type
◆ atomic() [1/2]
◆ atomic() [2/2]
◆ add_fetch()
91 {
return __atomic_add_fetch (&_m_value, v, order); }
◆ and_fetch()
97 {
return __atomic_and_fetch (&_m_value, v, order); }
◆ compare_exchange()
73 {
return __atomic_compare_exchange_n (&_m_value, &expected, desired, b, order, order); }
◆ exchange()
71 {
return __atomic_exchange_n (&_m_value, v, order); }
◆ fetch_add()
76 {
return __atomic_fetch_add (&_m_value, v, order); }
◆ fetch_and()
82 {
return __atomic_fetch_and (&_m_value, v, order); }
◆ fetch_or()
85 {
return __atomic_fetch_or (&_m_value, v, order); }
◆ fetch_sub()
79 {
return __atomic_fetch_sub (&_m_value, v, order); }
◆ fetch_xor()
88 {
return __atomic_fetch_xor (&_m_value, v, order); }
◆ get()
◆ is_free()
64 {
return __atomic_is_lock_free (
sizeof(
value_type), &_m_value); }
T value_type
Definition: atomic.hpp:54
◆ load()
69 {
return __atomic_load_n (&_m_value, order); }
◆ operator &=()
value_type and_fetch(value_type v, MemoryOrder::MemoryOrder_t order=MemoryOrder::SeqCst)
Definition: atomic.hpp:96
◆ operator value_type()
value_type load(MemoryOrder::MemoryOrder_t order=MemoryOrder::SeqCst) const
Definition: atomic.hpp:68
◆ operator++() [1/2]
value_type fetch_add(T v, MemoryOrder::MemoryOrder_t order=MemoryOrder::SeqCst)
Definition: atomic.hpp:75
◆ operator++() [2/2]
value_type add_fetch(value_type v, MemoryOrder::MemoryOrder_t order=MemoryOrder::SeqCst)
Definition: atomic.hpp:90
◆ operator+=()
value_type add_fetch(value_type v, MemoryOrder::MemoryOrder_t order=MemoryOrder::SeqCst)
Definition: atomic.hpp:90
◆ operator--() [1/2]
value_type fetch_sub(value_type v, MemoryOrder::MemoryOrder_t order=MemoryOrder::SeqCst)
Definition: atomic.hpp:78
◆ operator--() [2/2]
value_type sub_fetch(value_type v, MemoryOrder::MemoryOrder_t order=MemoryOrder::SeqCst)
Definition: atomic.hpp:93
◆ operator-=()
value_type sub_fetch(value_type v, MemoryOrder::MemoryOrder_t order=MemoryOrder::SeqCst)
Definition: atomic.hpp:93
◆ operator=()
112 {
store(v);
return v; }
void store(value_type v, MemoryOrder::MemoryOrder_t order=MemoryOrder::SeqCst)
Definition: atomic.hpp:65
◆ operator^=()
value_type xor_fetch(value_type v, MemoryOrder::MemoryOrder_t order=MemoryOrder::SeqCst)
Definition: atomic.hpp:102
◆ operator|=()
value_type or_fetch(value_type v, MemoryOrder::MemoryOrder_t order=MemoryOrder::SeqCst)
Definition: atomic.hpp:99
◆ or_fetch()
100 {
return __atomic_or_fetch (&_m_value, v, order); }
◆ store()
66 { __atomic_store_n (&_m_value, v, order); }
◆ sub_fetch()
94 {
return __atomic_sub_fetch (&_m_value, v, order); }
◆ swap()
106 std::swap<value_type>(_m_value, other._m_value);
◆ xor_fetch()
103 {
return __atomic_xor_fetch (&_m_value, v, order); }
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: