#include <AtomicValue_gcc.h>


Public Member Functions | |
| AtomicValue (T init=0) | |
| T | operator+= (T n) |
| T | operator-= (T n) |
| T | operator++ () |
| T | operator-- () |
| T | fetchAndAdd (T n) |
| T | fetchAndSub (T n) |
| T | operator++ (int) |
| T | operator-- (int) |
| T | valueCompareAndSwap (T testval, T newval) |
| If current value == testval then set to newval. | |
| bool | boolCompareAndSwap (T testval, T newval) |
| If current value == testval then set to newval. | |
| T | get () const |
| AtomicValue (T init=0) | |
| T | operator+= (T n) |
| T | operator-= (T n) |
| T | operator++ () |
| T | operator-- () |
| T | fetchAndAdd (T n) |
| T | fetchAndSub (T n) |
| T | operator++ (int) |
| T | operator-- (int) |
| T | valueCompareAndSwap (T testval, T newval) |
| If current value == testval then set to newval. | |
| bool | boolCompareAndSwap (T testval, T newval) |
| If current value == testval then set to newval. | |
| T | get () const |
T must be an integral type of size 1,2,4 or 8 bytes. All operations are atomic and preform a full memory barrier unless otherwise noted.
Definition at line 37 of file AtomicValue_gcc.h.
| T qpid::sys::AtomicValue< T >::valueCompareAndSwap | ( | T | testval, | |
| T | newval | |||
| ) | [inline] |
If current value == testval then set to newval.
Returns the old value.
Definition at line 55 of file AtomicValue_gcc.h.
| bool qpid::sys::AtomicValue< T >::boolCompareAndSwap | ( | T | testval, | |
| T | newval | |||
| ) | [inline] |
If current value == testval then set to newval.
Returns true if the swap was performed.
Definition at line 58 of file AtomicValue_gcc.h.
| T qpid::sys::AtomicValue< T >::valueCompareAndSwap | ( | T | testval, | |
| T | newval | |||
| ) | [inline] |
If current value == testval then set to newval.
Returns the old value.
Definition at line 57 of file AtomicValue_mutex.h.
| bool qpid::sys::AtomicValue< T >::boolCompareAndSwap | ( | T | testval, | |
| T | newval | |||
| ) | [inline] |
If current value == testval then set to newval.
Returns true if the swap was performed.
Definition at line 65 of file AtomicValue_mutex.h.
1.5.6