activemq-cpp-3.6.0
|
An Pointer reference that may be updated atomically. More...
#include <src/main/decaf/util/concurrent/atomic/AtomicReference.h>
Public Member Functions | |
AtomicReference () | |
AtomicReference (T *value) | |
virtual | ~AtomicReference () |
T * | get () const |
Gets the Current Value. | |
void | set (T *newValue) |
Sets the Current value of this Reference. | |
bool | compareAndSet (T *expect, T *update) |
Atomically sets the value to the given updated value if the current value == the expected value. | |
T * | getAndSet (T *newValue) |
Atomically sets to the given value and returns the old value. | |
std::string | toString () const |
Returns the String representation of the current value. |
An Pointer reference that may be updated atomically.
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
Atomically sets the value to the given updated value if the current value == the expected value.
expect | - the expected value |
update | - the new value |
|
inline |
Gets the Current Value.
|
inline |
Atomically sets to the given value and returns the old value.
newValue- | the new value |
Referenced by decaf::util::concurrent::atomic::AtomicReference< T >::set().
|
inline |
Sets the Current value of this Reference.
newValue | The new Value of this Reference. |
References decaf::util::concurrent::atomic::AtomicReference< T >::getAndSet().
|
inline |
Returns the String representation of the current value.