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)
T load (void) const
T load_acquire (void) const
T load_fenced (void) const
void store (T newval)
void store_release (T newval)
T 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)
T fetch_add (T to_add)
T fetch_sub (T to_sub)
T fetch_and (T to_and)
T fetch_or (T to_or)
T fetch_xor (T to_xor)
T fetch_min (T to_min)
T fetch_max (T to_max)
T fetch_add_acqrel (T to_add)
T fetch_sub_acqrel (T to_sub)
T fetch_and_acqrel (T to_and)
T fetch_or_acqrel (T to_or)
T fetch_xor_acqrel (T to_xor)
T fetch_min_acqrel (T to_min)
T 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 ( T _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,
T newval )

◆ compare_exchange_relaxed()

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

◆ compare_exchange_weak()

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

◆ exchange()

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

◆ fetch_add()

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

◆ fetch_add_acqrel()

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

◆ fetch_and()

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

◆ fetch_and_acqrel()

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

◆ fetch_max()

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

◆ fetch_max_acqrel()

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

◆ fetch_min()

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

◆ fetch_min_acqrel()

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

◆ fetch_or()

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

◆ fetch_or_acqrel()

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

◆ fetch_sub()

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

◆ fetch_sub_acqrel()

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

◆ fetch_xor()

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

◆ fetch_xor_acqrel()

template<typename T>
T Realm::atomic< T >::fetch_xor_acqrel ( T 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 ( T newval)

◆ store_release()

template<typename T>
void Realm::atomic< T >::store_release ( T 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:
  • /home/runner/work/realm/realm/realm-src/src/realm/atomics.h