|
| | Atomic () |
| | Create a new atomic variable with the default initial value. More...
|
| |
| | Atomic (T newValue) |
| | Create a new atomic variable with the specified initial value. More...
|
| |
| | operator T () const |
| | Return the current un-boxed atomic value. More...
|
| |
| T | operator++ () |
| | Prefix increment operator. More...
|
| |
| T | operator++ (int) |
| | Postfix increment operator. More...
|
| |
| T | operator-- () |
| | Prefix increment operator. More...
|
| |
| T | operator-- (int) |
| | Postfix increment operator. More...
|
| |
| T | operator+= (T a) |
| | Add the specified value to this atomic value, returning the result. More...
|
| |
| T | operator-= (T a) |
| | Subtract the specified value from this atomic value, returning the result. More...
|
| |
| T | operator&= (T a) |
| | Bitwise AND the specified value and this atomic value, returning the result. More...
|
| |
| T | operator|= (T a) |
| | Bitwise OR the specified value and this atomic value, returning the result. More...
|
| |
| T | operator^= (T a) |
| | Bitwise XOR the specified value and this atomic value, returning the result. More...
|
| |
| Bool | testAndSet (T compareValue=T(0), T newValue=T(1)) |
| | Return whether or not the atomic value was set to the comparison value. If so, set the atomic to the new value. More...
|
| |
template<typename T>
class om::threads::Atomic< T >
A class that wraps a primitive-type value in atomic operations.