#include <atomic.h>
Public Types | |
typedef Iter | atomic_type |
typedef Iter | data_type |
The associated non-atomic datatype. Generally equivalent to 'atomic_type'. | |
Static Public Member Functions | |
static void | store (atomic_type &anIt, const data_type &aVal) |
static atomic_type | load (const atomic_type &anIt) |
static const data_type & | value (const atomic_type &anIt) |
static void | incr (atomic_type &anIt) |
Used, for example, by the 'sequence_step' method, when there is no mutex to protect the access to an input sequence. Goes with 'compare_and_swap'.
typedef Iter rpa::atomic< Iter >::atomic_type |
We do not manipulate the class itself, but instead the datatype designated by this class, as an atomic type. Therefore, it allows to use as atomic type, any architecture-specific type.
typedef Iter rpa::atomic< Iter >::data_type |
The associated non-atomic datatype. Generally equivalent to 'atomic_type'.
static void rpa::atomic< Iter >::incr | ( | atomic_type & | anIt | ) | [static] |
static atomic_type rpa::atomic< Iter >::load | ( | const atomic_type & | anIt | ) | [static] |
static void rpa::atomic< Iter >::store | ( | atomic_type & | anIt, | |
const data_type & | aVal | |||
) | [static] |
static const data_type& rpa::atomic< Iter >::value | ( | const atomic_type & | anIt | ) | [static] |