Quick Links:

bal | bbl | bdl | bsl

Public Types | Static Public Member Functions | Private Types | Static Private Member Functions

bsls::AtomicOperations_Default64< IMP > Struct Template Reference

#include <bsls_atomicoperations_default.h>

Inheritance diagram for bsls::AtomicOperations_Default64< IMP >:
bsls::AtomicOperations_DefaultInt< IMP > bsls::AtomicOperations_DefaultInt64< IMP > bsls::AtomicOperations_DefaultUint< IMP > bsls::AtomicOperations_DefaultUint64< IMP > bsls::AtomicOperations_DefaultPointer64< IMP >

List of all members.

Public Types

typedef Atomic_TypeTraits< IMP > AtomicTypes

Static Public Member Functions

static int getIntAcquire (typename AtomicTypes::Int const *atomicInt)
static int getIntRelaxed (typename AtomicTypes::Int const *atomicInt)
static void initInt (typename AtomicTypes::Int *atomicInt, int initialValue=0)
static void setIntRelaxed (typename AtomicTypes::Int *atomicInt, int value)
static void setIntRelease (typename AtomicTypes::Int *atomicInt, int value)
static int swapIntAcqRel (typename AtomicTypes::Int *atomicInt, int swapValue)
static int testAndSwapIntAcqRel (typename AtomicTypes::Int *atomicInt, int compareValue, int swapValue)
static void addInt (typename AtomicTypes::Int *atomicInt, int value)
static void addIntAcqRel (typename AtomicTypes::Int *atomicInt, int value)
static void addIntRelaxed (typename AtomicTypes::Int *atomicInt, int value)
static int addIntNvAcqRel (typename AtomicTypes::Int *atomicInt, int value)
static int addIntNvRelaxed (typename AtomicTypes::Int *atomicInt, int value)
static void decrementInt (typename AtomicTypes::Int *atomicInt)
static void decrementIntAcqRel (typename AtomicTypes::Int *atomicInt)
static int decrementIntNv (typename AtomicTypes::Int *atomicInt)
static int decrementIntNvAcqRel (typename AtomicTypes::Int *atomicInt)
static void incrementInt (typename AtomicTypes::Int *atomicInt)
static void incrementIntAcqRel (typename AtomicTypes::Int *atomicInt)
static int incrementIntNv (typename AtomicTypes::Int *atomicInt)
static int incrementIntNvAcqRel (typename AtomicTypes::Int *atomicInt)
static int subtractIntNv (typename AtomicTypes::Int *atomicInt, int value)
static int subtractIntNvAcqRel (typename AtomicTypes::Int *atomicInt, int value)
static int subtractIntNvRelaxed (typename AtomicTypes::Int *atomicInt, int value)

Private Types

typedef Atomic_TypeTraits< IMP > AtomicTypes
typedef Atomic_TypeTraits< IMP > AtomicTypes
typedef Atomic_TypeTraits< IMP > AtomicTypes
typedef Atomic_TypeTraits< IMP > AtomicTypes

Static Private Member Functions

static Types::Int64 getInt64Acquire (typename AtomicTypes::Int64 const *atomicInt)
static Types::Int64 getInt64Relaxed (typename AtomicTypes::Int64 const *atomicInt)
static void initInt64 (typename AtomicTypes::Int64 *atomicInt, Types::Int64 initialValue=0)
static void setInt64Relaxed (typename AtomicTypes::Int64 *atomicInt, Types::Int64 value)
static void setInt64Release (typename AtomicTypes::Int64 *atomicInt, Types::Int64 value)
static Types::Int64 swapInt64AcqRel (typename AtomicTypes::Int64 *atomicInt, Types::Int64 swapValue)
static Types::Int64 testAndSwapInt64AcqRel (typename AtomicTypes::Int64 *atomicInt, Types::Int64 compareValue, Types::Int64 swapValue)
static void addInt64 (typename AtomicTypes::Int64 *atomicInt, Types::Int64 value)
static void addInt64AcqRel (typename AtomicTypes::Int64 *atomicInt, Types::Int64 value)
static void addInt64Relaxed (typename AtomicTypes::Int64 *atomicInt, Types::Int64 value)
static Types::Int64 addInt64NvAcqRel (typename AtomicTypes::Int64 *atomicInt, Types::Int64 value)
static Types::Int64 addInt64NvRelaxed (typename AtomicTypes::Int64 *atomicInt, Types::Int64 value)
static void decrementInt64 (typename AtomicTypes::Int64 *atomicInt)
static void decrementInt64AcqRel (typename AtomicTypes::Int64 *atomicInt)
static Types::Int64 decrementInt64Nv (typename AtomicTypes::Int64 *atomicInt)
static Types::Int64 decrementInt64NvAcqRel (typename AtomicTypes::Int64 *atomicInt)
static void incrementInt64 (typename AtomicTypes::Int64 *atomicInt)
static void incrementInt64AcqRel (typename AtomicTypes::Int64 *atomicInt)
static Types::Int64 incrementInt64Nv (typename AtomicTypes::Int64 *atomicInt)
static Types::Int64 incrementInt64NvAcqRel (typename AtomicTypes::Int64 *atomicInt)
static Types::Int64 subtractInt64Nv (typename AtomicTypes::Int64 *atomicInt, Types::Int64 value)
static Types::Int64 subtractInt64NvAcqRel (typename AtomicTypes::Int64 *atomicInt, Types::Int64 value)
static Types::Int64 subtractInt64NvRelaxed (typename AtomicTypes::Int64 *atomicInt, Types::Int64 value)
static unsigned int getUint (typename AtomicTypes::Uint const *atomicUint)
static unsigned int getUintAcquire (typename AtomicTypes::Uint const *atomicUint)
static unsigned int getUintRelaxed (typename AtomicTypes::Uint const *atomicUint)
static void initUint (typename AtomicTypes::Uint *atomicUint, unsigned int initialValue=0)
static void setUint (typename AtomicTypes::Uint *atomicUint, unsigned int value)
static void setUintRelaxed (typename AtomicTypes::Uint *atomicUint, unsigned int value)
static void setUintRelease (typename AtomicTypes::Uint *atomicUint, unsigned int value)
static unsigned int swapUint (typename AtomicTypes::Uint *atomicUint, unsigned int swapValue)
static unsigned int swapUintAcqRel (typename AtomicTypes::Uint *atomicUint, unsigned int swapValue)
static unsigned int testAndSwapUint (typename AtomicTypes::Uint *atomicUint, unsigned int compareValue, unsigned int swapValue)
static unsigned int testAndSwapUintAcqRel (typename AtomicTypes::Uint *atomicUint, unsigned int compareValue, unsigned int swapValue)
static void addUint (typename AtomicTypes::Uint *atomicUint, unsigned int value)
static void addUintAcqRel (typename AtomicTypes::Uint *atomicUint, unsigned int value)
static void addUintRelaxed (typename AtomicTypes::Uint *atomicUint, unsigned int value)
static unsigned int addUintNv (typename AtomicTypes::Uint *atomicUint, unsigned int value)
static unsigned int addUintNvAcqRel (typename AtomicTypes::Uint *atomicUint, unsigned int value)
static unsigned int addUintNvRelaxed (typename AtomicTypes::Uint *atomicUint, unsigned int value)
static void decrementUint (typename AtomicTypes::Uint *atomicUint)
static void decrementUintAcqRel (typename AtomicTypes::Uint *atomicUint)
static unsigned int decrementUintNv (typename AtomicTypes::Uint *atomicUint)
static unsigned int decrementUintNvAcqRel (typename AtomicTypes::Uint *atomicUint)
static void incrementUint (typename AtomicTypes::Uint *atomicUint)
static void incrementUintAcqRel (typename AtomicTypes::Uint *atomicUint)
static unsigned int incrementUintNv (typename AtomicTypes::Uint *atomicUint)
static unsigned int incrementUintNvAcqRel (typename AtomicTypes::Uint *atomicUint)
static unsigned int subtractUintNv (typename AtomicTypes::Uint *atomicUint, unsigned int value)
static unsigned int subtractUintNvAcqRel (typename AtomicTypes::Uint *atomicUint, unsigned int value)
static unsigned int subtractUintNvRelaxed (typename AtomicTypes::Uint *atomicUint, unsigned int value)
static Types::Uint64 getUint64 (typename AtomicTypes::Uint64 const *atomicUint)
static Types::Uint64 getUint64Acquire (typename AtomicTypes::Uint64 const *atomicUint)
static Types::Uint64 getUint64Relaxed (typename AtomicTypes::Uint64 const *atomicUint)
static void initUint64 (typename AtomicTypes::Uint64 *atomicUint, Types::Uint64 initialValue=0)
static void setUint64 (typename AtomicTypes::Uint64 *atomicUint, Types::Uint64 value)
static void setUint64Relaxed (typename AtomicTypes::Uint64 *atomicUint, Types::Uint64 value)
static void setUint64Release (typename AtomicTypes::Uint64 *atomicUint, Types::Uint64 value)
static Types::Uint64 swapUint64 (typename AtomicTypes::Uint64 *atomicUint, Types::Uint64 swapValue)
static Types::Uint64 swapUint64AcqRel (typename AtomicTypes::Uint64 *atomicUint, Types::Uint64 swapValue)
static Types::Uint64 testAndSwapUint64 (typename AtomicTypes::Uint64 *atomicUint, Types::Uint64 compareValue, Types::Uint64 swapValue)
static Types::Uint64 testAndSwapUint64AcqRel (typename AtomicTypes::Uint64 *atomicUint, Types::Uint64 compareValue, Types::Uint64 swapValue)
static void addUint64 (typename AtomicTypes::Uint64 *atomicUint, Types::Uint64 value)
static void addUint64AcqRel (typename AtomicTypes::Uint64 *atomicUint, Types::Uint64 value)
static void addUint64Relaxed (typename AtomicTypes::Uint64 *atomicUint, Types::Uint64 value)
static Types::Uint64 addUint64Nv (typename AtomicTypes::Uint64 *atomicUint, Types::Uint64 value)
static Types::Uint64 addUint64NvAcqRel (typename AtomicTypes::Uint64 *atomicUint, Types::Uint64 value)
static Types::Uint64 addUint64NvRelaxed (typename AtomicTypes::Uint64 *atomicUint, Types::Uint64 value)
static void decrementUint64 (typename AtomicTypes::Uint64 *atomicUint)
static void decrementUint64AcqRel (typename AtomicTypes::Uint64 *atomicUint)
static Types::Uint64 decrementUint64Nv (typename AtomicTypes::Uint64 *atomicUint)
static Types::Uint64 decrementUint64NvAcqRel (typename AtomicTypes::Uint64 *atomicUint)
static void incrementUint64 (typename AtomicTypes::Uint64 *atomicUint)
static void incrementUint64AcqRel (typename AtomicTypes::Uint64 *atomicUint)
static Types::Uint64 incrementUint64Nv (typename AtomicTypes::Uint64 *atomicUint)
static Types::Uint64 incrementUint64NvAcqRel (typename AtomicTypes::Uint64 *atomicUint)
static Types::Uint64 subtractUint64Nv (typename AtomicTypes::Uint64 *atomicUint, Types::Uint64 value)
static Types::Uint64 subtractUint64NvAcqRel (typename AtomicTypes::Uint64 *atomicUint, Types::Uint64 value)
static Types::Uint64 subtractUint64NvRelaxed (typename AtomicTypes::Uint64 *atomicUint, Types::Uint64 value)
static void * getPtr (typename AtomicTypes::Pointer const *atomicPtr)
static void * getPtrAcquire (typename AtomicTypes::Pointer const *atomicPtr)
static void * getPtrRelaxed (typename AtomicTypes::Pointer const *atomicPtr)
static void initPointer (typename AtomicTypes::Pointer *atomicPtr, void *initialValue=0)
static void setPtr (typename AtomicTypes::Pointer *atomicPtr, void *value)
static void setPtrRelaxed (typename AtomicTypes::Pointer *atomicPtr, void *value)
static void setPtrRelease (typename AtomicTypes::Pointer *atomicPtr, void *value)
static void * swapPtr (typename AtomicTypes::Pointer *atomicPtr, void *swapValue)
static void * swapPtrAcqRel (typename AtomicTypes::Pointer *atomicPtr, void *swapValue)
static void * testAndSwapPtr (typename AtomicTypes::Pointer *atomicPtr, void *compareValue, void *swapValue)
static void * testAndSwapPtrAcqRel (typename AtomicTypes::Pointer *atomicPtr, void *compareValue, void *swapValue)

template<class IMP>
struct bsls::AtomicOperations_Default64< IMP >


Member Typedef Documentation

template<class IMP >
typedef Atomic_TypeTraits<IMP> bsls::AtomicOperations_DefaultInt< IMP >::AtomicTypes [inherited]

Member Function Documentation

template<class IMP >
static int bsls::AtomicOperations_DefaultInt< IMP >::getIntAcquire ( typename AtomicTypes::Int const *  atomicInt  )  [static, inherited]

Atomically retrieve the value of the specified atomicInt, providing the acquire memory ordering guarantee.

template<class IMP >
static int bsls::AtomicOperations_DefaultInt< IMP >::getIntRelaxed ( typename AtomicTypes::Int const *  atomicInt  )  [static, inherited]

Atomically retrieve the value of the specified atomicInt, without providing any memory ordering guarantees.

template<class IMP >
static void bsls::AtomicOperations_DefaultInt< IMP >::initInt ( typename AtomicTypes::Int *  atomicInt,
int  initialValue = 0 
) [static, inherited]

Initialize the specified atomicInt and set its value to the optionally specified initialValue.

template<class IMP >
static void bsls::AtomicOperations_DefaultInt< IMP >::setIntRelaxed ( typename AtomicTypes::Int *  atomicInt,
int  value 
) [static, inherited]

Atomically set the value of the specified atomicInt to the specified value, without providing any memory ordering guarantees.

template<class IMP >
static void bsls::AtomicOperations_DefaultInt< IMP >::setIntRelease ( typename AtomicTypes::Int *  atomicInt,
int  value 
) [static, inherited]

Atomically set the value of the specified atomicInt to the specified value, providing the release memory ordering guarantee.

template<class IMP >
static int bsls::AtomicOperations_DefaultInt< IMP >::swapIntAcqRel ( typename AtomicTypes::Int *  atomicInt,
int  swapValue 
) [static, inherited]

Atomically set the value of the specified atomicInt to the specified swapValue, and return its previous value, providing the acquire/release memory ordering guarantee.

template<class IMP >
static int bsls::AtomicOperations_DefaultInt< IMP >::testAndSwapIntAcqRel ( typename AtomicTypes::Int *  atomicInt,
int  compareValue,
int  swapValue 
) [static, inherited]

Conditionally set the value of the specified atomicInt to the specified swapValue if and only if the value of atomicInt equals the value of the specified compareValue, and return the initial value of atomicInt, providing the acquire/release memory ordering guarantee. The whole operation is performed atomically.

template<class IMP >
static void bsls::AtomicOperations_DefaultInt< IMP >::addInt ( typename AtomicTypes::Int *  atomicInt,
int  value 
) [static, inherited]

Atomically add to the specified atomicInt the specified value, providing the sequential consistency memory ordering guarantee.

template<class IMP >
static void bsls::AtomicOperations_DefaultInt< IMP >::addIntAcqRel ( typename AtomicTypes::Int *  atomicInt,
int  value 
) [static, inherited]

Atomically add to the specified atomicInt the specified value, providing the acquire/release memory ordering guarantee.

template<class IMP >
static void bsls::AtomicOperations_DefaultInt< IMP >::addIntRelaxed ( typename AtomicTypes::Int *  atomicInt,
int  value 
) [static, inherited]

Atomically add to the specified atomicInt the specified value, without providing any memory ordering guarantees.

template<class IMP >
static int bsls::AtomicOperations_DefaultInt< IMP >::addIntNvAcqRel ( typename AtomicTypes::Int *  atomicInt,
int  value 
) [static, inherited]

Atomically add to the specified atomicInt the specified value and return the resulting value, providing the acquire/release memory ordering guarantee.

template<class IMP >
static int bsls::AtomicOperations_DefaultInt< IMP >::addIntNvRelaxed ( typename AtomicTypes::Int *  atomicInt,
int  value 
) [static, inherited]

Atomically add to the specified atomicInt the specified value and return the resulting value, without providing any memory ordering guarantees.

template<class IMP >
static void bsls::AtomicOperations_DefaultInt< IMP >::decrementInt ( typename AtomicTypes::Int *  atomicInt  )  [static, inherited]

Atomically decrement the value of the specified atomicInt by 1, providing the sequential consistency memory ordering guarantee.

template<class IMP >
static void bsls::AtomicOperations_DefaultInt< IMP >::decrementIntAcqRel ( typename AtomicTypes::Int *  atomicInt  )  [static, inherited]

Atomically decrement the value of the specified atomicInt by 1, providing the acquire/release memory ordering guarantee.

template<class IMP >
static int bsls::AtomicOperations_DefaultInt< IMP >::decrementIntNv ( typename AtomicTypes::Int *  atomicInt  )  [static, inherited]

Atomically decrement the specified atomicInt by 1 and return the resulting value, providing the sequential consistency memory ordering guarantee.

template<class IMP >
static int bsls::AtomicOperations_DefaultInt< IMP >::decrementIntNvAcqRel ( typename AtomicTypes::Int *  atomicInt  )  [static, inherited]

Atomically decrement the specified atomicInt by 1 and return the resulting value, providing the acquire/release memory ordering guarantee.

template<class IMP >
static void bsls::AtomicOperations_DefaultInt< IMP >::incrementInt ( typename AtomicTypes::Int *  atomicInt  )  [static, inherited]

Atomically increment the value of the specified atomicInt by 1, providing the sequential consistency memory ordering guarantee.

template<class IMP >
static void bsls::AtomicOperations_DefaultInt< IMP >::incrementIntAcqRel ( typename AtomicTypes::Int *  atomicInt  )  [static, inherited]

Atomically increment the value of the specified atomicInt by 1, providing the acquire/release memory ordering guarantee.

template<class IMP >
static int bsls::AtomicOperations_DefaultInt< IMP >::incrementIntNv ( typename AtomicTypes::Int *  atomicInt  )  [static, inherited]

Atomically increment the specified atomicInt by 1 and return the resulting value, providing the sequential consistency memory ordering guarantee.

template<class IMP >
static int bsls::AtomicOperations_DefaultInt< IMP >::incrementIntNvAcqRel ( typename AtomicTypes::Int *  atomicInt  )  [static, inherited]

Atomically increment the specified atomicInt by 1 and return the resulting value, providing the acquire/release memory ordering guarantee.

template<class IMP >
static int bsls::AtomicOperations_DefaultInt< IMP >::subtractIntNv ( typename AtomicTypes::Int *  atomicInt,
int  value 
) [static, inherited]

Atomically subtract from the specified atomicInt the specified value and return the resulting value, providing the sequential consistency memory ordering guarantee.

template<class IMP >
static int bsls::AtomicOperations_DefaultInt< IMP >::subtractIntNvAcqRel ( typename AtomicTypes::Int *  atomicInt,
int  value 
) [static, inherited]

Atomically subtract from the specified atomicInt the specified value and return the resulting value, providing the acquire/release memory ordering guarantee.

template<class IMP >
static int bsls::AtomicOperations_DefaultInt< IMP >::subtractIntNvRelaxed ( typename AtomicTypes::Int *  atomicInt,
int  value 
) [static, inherited]

Atomically subtract from the specified atomicInt the specified value and return the resulting value, without providing any memory ordering guarantees.


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