HikoGUI
A low latency retained GUI
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Data Fields | Static Public Attributes
std::atomic< hi::global_state_type > Struct Reference

Public Types

using value_type = hi::global_state_type
 
using atomic_type = std::atomic<underlying_type_t<value_type>>
 

Public Member Functions

 atomic (atomic const &)=delete
 
 atomic (atomic &&)=delete
 
atomicoperator= (atomic const &)=delete
 
atomicoperator= (atomic &&)=delete
 
constexpr atomic (value_type desired) noexcept
 
bool is_lock_free () const noexcept
 
void store (value_type desired, std::memory_order order=std::memory_order::seq_cst) noexcept
 
value_type load (std::memory_order order=std::memory_order::seq_cst) const noexcept
 
value_type exchange (value_type desired, std::memory_order order=std::memory_order::seq_cst) noexcept
 
bool compare_exchange_weak (value_type &expected, value_type desired, std::memory_order success, std::memory_order failure) noexcept
 
bool compare_exchange_weak (value_type &expected, value_type desired, std::memory_order order=std::memory_order::seq_cst) noexcept
 
bool compare_exchange_strong (value_type &expected, value_type desired, std::memory_order success, std::memory_order failure) noexcept
 
bool compare_exchange_strong (value_type &expected, value_type desired, std::memory_order order=std::memory_order::seq_cst) noexcept
 
value_type fetch_and (value_type arg, std::memory_order order=std::memory_order::seq_cst) noexcept
 
value_type fetch_or (value_type arg, std::memory_order order=std::memory_order::seq_cst) noexcept
 
 operator value_type () const noexcept
 
value_type operator= (value_type desired) noexcept
 
value_type operator|= (value_type arg) noexcept
 
value_type operator&= (value_type arg) noexcept
 

Data Fields

atomic_type v
 

Static Public Attributes

static constexpr bool is_always_lock_free = atomic_type::is_always_lock_free
 

The documentation for this struct was generated from the following file: