activemq-cpp-3.9.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. More... | |
void | set (T *newValue) |
Sets the Current value of this Reference. More... | |
bool | compareAndSet (T *expect, T *update) |
Atomically sets the value to the given updated value if the current value == the expected value. More... | |
T * | getAndSet (T *newValue) |
Atomically sets to the given value and returns the old value. More... | |
std::string | toString () const |
Returns the String representation of the current value. More... | |
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 |
References decaf::internal::util::concurrent::Atomics::compareAndSet().
|
inline |
Gets the Current Value.
|
inline |
Atomically sets to the given value and returns the old value.
newValue- | the new value |
References decaf::internal::util::concurrent::Atomics::getAndSet().
|
inline |
Sets the Current value of this Reference.
newValue | The new Value of this Reference. |
References decaf::internal::util::concurrent::Atomics::getAndSet().
|
inline |
Returns the String representation of the current value.
References decaf::lang::Long::toString().