|
tenno 0.1.0
|
The atomic class template provides operations on atomic types. More...
#include <atomic.hpp>
Public Types | |
| using | value_type = T |
| The type of the atomic object. | |
Public Member Functions | |
| atomic () noexcept=default | |
| ~atomic () noexcept=default | |
| atomic (const atomic &)=delete | |
| atomic & | operator= (const atomic &)=delete |
| atomic & | operator= (const atomic &) volatile =delete |
| bool | is_lock_free () const noexcept |
| void | store (T desired) noexcept |
| T | load () noexcept |
| operator T () noexcept | |
| T | exchange (T desired) noexcept |
| Exchange the value stored in the atomic object with a new value. | |
| bool | compare_exchange_weak (const T &expected, T desired) noexcept |
| Compare and exchange the value of the atomic object. | |
| bool | compare_exchange_strong (const T &expected, T desired) noexcept |
| Compare and exchange the value of the atomic object. | |
Data Fields | |
| const bool | is_always_lock_free = false |
The atomic class template provides operations on atomic types.
| T | The type of the atomic object. |
Definition at line 21 of file atomic.hpp.
| using tenno::atomic< T >::value_type = T |
The type of the atomic object.
Definition at line 27 of file atomic.hpp.
|
defaultnoexcept |
|
defaultnoexcept |
|
delete |
|
inlinenoexcept |
Compare and exchange the value of the atomic object.
| expected | The expected value |
| desired | The desired value |
Definition at line 96 of file atomic.hpp.
|
inlinenoexcept |
Compare and exchange the value of the atomic object.
| expected | The expected value |
| desired | The desired value |
Definition at line 78 of file atomic.hpp.
|
inlinenoexcept |
Exchange the value stored in the atomic object with a new value.
| desired | The new value to store in the atomic object. |
Definition at line 64 of file atomic.hpp.
|
inlinenoexcept |
Definition at line 36 of file atomic.hpp.
|
inlinenoexcept |
Definition at line 47 of file atomic.hpp.
|
inlinenoexcept |
Definition at line 53 of file atomic.hpp.
|
delete |
|
delete |
|
inlinenoexcept |
Definition at line 41 of file atomic.hpp.
| const bool tenno::atomic< T >::is_always_lock_free = false |
Definition at line 28 of file atomic.hpp.