Mixe for Privacy and Anonymity in the Internet
|
#include <atomicops.h>
Public Member Functions | |
AE_NO_TSAN | weak_atomic () |
template<typename U > | |
AE_NO_TSAN | weak_atomic (U &&x) |
AE_NO_TSAN | weak_atomic (weak_atomic const &other) |
AE_NO_TSAN | weak_atomic (weak_atomic &&other) |
AE_FORCEINLINE | operator T () const AE_NO_TSAN |
template<typename U > | |
AE_FORCEINLINE weak_atomic const & | operator= (U &&x) AE_NO_TSAN |
AE_FORCEINLINE weak_atomic const & | operator= (weak_atomic const &other) AE_NO_TSAN |
AE_FORCEINLINE T | load () const AE_NO_TSAN |
AE_FORCEINLINE T | fetch_add_acquire (T increment) AE_NO_TSAN |
AE_FORCEINLINE T | fetch_add_release (T increment) AE_NO_TSAN |
Private Attributes | |
std::atomic< T > | value |
Definition at line 233 of file atomicops.h.
|
inline |
Definition at line 236 of file atomicops.h.
|
inline |
Definition at line 241 of file atomicops.h.
|
inline |
Definition at line 246 of file atomicops.h.
|
inline |
Definition at line 247 of file atomicops.h.
|
inline |
Definition at line 304 of file atomicops.h.
References memory_order_acquire, and weak_atomic< T >::value.
Referenced by spsc_sema::LightweightSemaphore::tryWait(), and spsc_sema::LightweightSemaphore::waitWithPartialSpinning().
|
inline |
Definition at line 309 of file atomicops.h.
References memory_order_release, and weak_atomic< T >::value.
Referenced by spsc_sema::LightweightSemaphore::signal(), and spsc_sema::LightweightSemaphore::waitWithPartialSpinning().
|
inline |
Definition at line 302 of file atomicops.h.
References memory_order_relaxed, and weak_atomic< T >::value.
Referenced by spsc_sema::LightweightSemaphore::availableApprox(), ReaderWriterQueue::inner_enqueue(), weak_atomic< ReaderWriterQueue::Block * >::operator ReaderWriterQueue::Block *(), ReaderWriterQueue::peek(), ReaderWriterQueue::pop(), ReaderWriterQueue::size_approx(), ReaderWriterQueue::try_dequeue(), spsc_sema::LightweightSemaphore::tryWait(), and spsc_sema::LightweightSemaphore::waitWithPartialSpinning().
|
inline |
Definition at line 252 of file atomicops.h.
|
inline |
Definition at line 290 of file atomicops.h.
References memory_order_relaxed, and weak_atomic< T >::value.
|
inline |
Definition at line 296 of file atomicops.h.
References memory_order_relaxed, and weak_atomic< T >::value.
|
private |
Definition at line 322 of file atomicops.h.
Referenced by weak_atomic< T >::fetch_add_acquire(), weak_atomic< T >::fetch_add_release(), weak_atomic< T >::load(), and weak_atomic< T >::operator=().