Realm
A distributed, event-based tasking library
Loading...
Searching...
No Matches
Realm::atomic< T > Class Template Reference

#include <atomics.h>

Public Member Functions

 atomic (void)
 
 atomic (T _value)
 
 atomic (const atomic< T > &copy_from)
 
atomic< T > & operator= (const atomic< T > &copy_from)
 
load (void) const
 
load_acquire (void) const
 
load_fenced (void) const
 
void store (T newval)
 
void store_release (T newval)
 
exchange (T newval)
 
bool compare_exchange (T &expected, T newval)
 
bool compare_exchange_relaxed (T &expected, T newval)
 
bool compare_exchange_weak (T &expected, T newval)
 
fetch_add (T to_add)
 
fetch_sub (T to_sub)
 
fetch_and (T to_and)
 
fetch_or (T to_or)
 
fetch_xor (T to_xor)
 
fetch_min (T to_min)
 
fetch_max (T to_max)
 
fetch_add_acqrel (T to_add)
 
fetch_sub_acqrel (T to_sub)
 
fetch_and_acqrel (T to_and)
 
fetch_or_acqrel (T to_or)
 
fetch_xor_acqrel (T to_xor)
 
fetch_min_acqrel (T to_min)
 
fetch_max_acqrel (T to_max)
 

Protected Attributes

std::atomic< T > value
 

Constructor & Destructor Documentation

◆ atomic() [1/3]

template<typename T >
Realm::atomic< T >::atomic ( void  )

◆ atomic() [2/3]

template<typename T >
Realm::atomic< T >::atomic ( _value)
explicit

◆ atomic() [3/3]

template<typename T >
Realm::atomic< T >::atomic ( const atomic< T > &  copy_from)

Member Function Documentation

◆ compare_exchange()

template<typename T >
bool Realm::atomic< T >::compare_exchange ( T &  expected,
newval 
)

◆ compare_exchange_relaxed()

template<typename T >
bool Realm::atomic< T >::compare_exchange_relaxed ( T &  expected,
newval 
)

◆ compare_exchange_weak()

template<typename T >
bool Realm::atomic< T >::compare_exchange_weak ( T &  expected,
newval 
)

◆ exchange()

template<typename T >
T Realm::atomic< T >::exchange ( newval)

◆ fetch_add()

template<typename T >
T Realm::atomic< T >::fetch_add ( to_add)

◆ fetch_add_acqrel()

template<typename T >
T Realm::atomic< T >::fetch_add_acqrel ( to_add)

◆ fetch_and()

template<typename T >
T Realm::atomic< T >::fetch_and ( to_and)

◆ fetch_and_acqrel()

template<typename T >
T Realm::atomic< T >::fetch_and_acqrel ( to_and)

◆ fetch_max()

template<typename T >
T Realm::atomic< T >::fetch_max ( to_max)

◆ fetch_max_acqrel()

template<typename T >
T Realm::atomic< T >::fetch_max_acqrel ( to_max)

◆ fetch_min()

template<typename T >
T Realm::atomic< T >::fetch_min ( to_min)

◆ fetch_min_acqrel()

template<typename T >
T Realm::atomic< T >::fetch_min_acqrel ( to_min)

◆ fetch_or()

template<typename T >
T Realm::atomic< T >::fetch_or ( to_or)

◆ fetch_or_acqrel()

template<typename T >
T Realm::atomic< T >::fetch_or_acqrel ( to_or)

◆ fetch_sub()

template<typename T >
T Realm::atomic< T >::fetch_sub ( to_sub)

◆ fetch_sub_acqrel()

template<typename T >
T Realm::atomic< T >::fetch_sub_acqrel ( to_sub)

◆ fetch_xor()

template<typename T >
T Realm::atomic< T >::fetch_xor ( to_xor)

◆ fetch_xor_acqrel()

template<typename T >
T Realm::atomic< T >::fetch_xor_acqrel ( to_xor)

◆ load()

template<typename T >
T Realm::atomic< T >::load ( void  ) const

◆ load_acquire()

template<typename T >
T Realm::atomic< T >::load_acquire ( void  ) const

◆ load_fenced()

template<typename T >
T Realm::atomic< T >::load_fenced ( void  ) const

◆ operator=()

template<typename T >
atomic< T > & Realm::atomic< T >::operator= ( const atomic< T > &  copy_from)

◆ store()

template<typename T >
void Realm::atomic< T >::store ( newval)

◆ store_release()

template<typename T >
void Realm::atomic< T >::store_release ( newval)

Member Data Documentation

◆ value

template<typename T >
std::atomic<T> Realm::atomic< T >::value
protected

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