|
libqi-api
2.4.3.28
|
#include <atomic.hpp>
Public Member Functions | |
| Atomic () | |
| Atomic (T value) | |
| Atomic (const Atomic &other) | |
| T | operator++ () |
| Atomic increment of the value. More... | |
| T | operator-- () |
| Atomic decement of the value. More... | |
| Atomic< T > & | operator= (T value) |
| Atomic< T > & | operator= (const Atomic< T > &value) |
| bool | setIfEquals (T testValue, T setValue) |
| T | swap (T value) |
| T | operator* () const |
Public Attributes | |
| boost::atomic< T > | _value |
Atomic operations on integrals.
This class allows to do operations on an integral value from multiple threads, with the guarantee that each operation will not lead to a data race.
Definition at line 140 of file atomic.hpp.
|
inline |
Definition at line 147 of file atomic.hpp.
|
inline |
Atomic constructor setting value to its parameter.
| value | The default value of the atomic. |
Definition at line 153 of file atomic.hpp.
|
inline |
Definition at line 159 of file atomic.hpp.
|
inline |
Return the contained value
Definition at line 189 of file atomic.hpp.
|
inline |
Atomic increment of the value.
Definition at line 164 of file atomic.hpp.
|
inline |
Atomic decement of the value.
Definition at line 167 of file atomic.hpp.
|
inline |
Definition at line 170 of file atomic.hpp.
|
inline |
Definition at line 172 of file atomic.hpp.
|
inline |
If value is testValue, replace it with setValue.
Definition at line 178 of file atomic.hpp.
|
inline |
Swap the atomic value with value.
Definition at line 184 of file atomic.hpp.
| boost::atomic<T> qi::Atomic< T >::_value |
Definition at line 143 of file atomic.hpp.