libqi-api
2.0.6.8
|
Atomic operations on integers. More...
#include <atomic.hpp>
Public Member Functions | |
Atomic () | |
Default atomic constructor, setting value to 0. | |
Atomic (T value) | |
Atomic constructor setting value to its parameter. |
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.
qi::Atomic< T >::Atomic | ( | ) | [inline] |
Default atomic constructor, setting value to 0.
Definition at line 91 of file atomic.hpp.
qi::Atomic< T >::Atomic | ( | T | value | ) | [inline] |
Atomic constructor setting value to its parameter.
value | The default value of the atomic. |
Definition at line 96 of file atomic.hpp.