|
libqi-api
2.1.4.13
|
Atomic operations on integers. More...
#include <atomic.hpp>
Public Member Functions | |
| Atomic () | |
| Default atomic constructor, setting value to 0. More... | |
| Atomic (T value) | |
| Atomic constructor setting value to its parameter. More... | |
Public Member Functions inherited from qi::AtomicBase< T > | |
| T | operator++ () |
| T | operator-- () |
| AtomicBase< T > & | operator= (T value) |
| bool | setIfEquals (T testValue, T setValue) |
| T | swap (T value) |
| T | operator* () const |
| BOOST_STATIC_ASSERT_MSG (sizeof(T)==sizeof(int),"qi::Atomic is only supprted for int-like types") | |
Additional Inherited Members | |
Public Attributes inherited from qi::AtomicBase< T > | |
| volatile T | _value |
Atomic operations on integers.
* This class permits to do operations on a integer value from multiple threads, * with the assurance that each operation will not be done from multiple threads * at the same time. * * .. warning:: * To make sure the code is cross platform, only types * which have the same size as ``int`` are supported *
Definition at line 88 of file atomic.hpp.
|
inline |
Default atomic constructor, setting value to 0.
Definition at line 91 of file atomic.hpp.
|
inline |
Atomic constructor setting value to its parameter.
| value | The default value of the atomic. |
Definition at line 96 of file atomic.hpp.