#include <Atomic.hpp>
Public Member Functions | |
| void | add (int i) |
| AtomicInt (int value=0) | |
| AtomicInt (const AtomicInt &orig) | |
| void | dec () |
| bool | dec_and_test () |
| void | inc () |
| bool | inc_and_test () |
| const AtomicInt & | operator= (const AtomicInt &orig) |
| int | read () const |
| void | set (int i) |
| void | sub (int i) |
| bool | sub_and_test (int i) |
| ~AtomicInt () | |
Private Attributes | |
| oro_atomic_t | _val |
C++ abstraction of atomic integer operations.
Definition at line 49 of file Atomic.hpp.
|
inline |
Definition at line 53 of file Atomic.hpp.
|
inline |
Definition at line 58 of file Atomic.hpp.
|
inline |
Definition at line 63 of file Atomic.hpp.
|
inline |
Definition at line 84 of file Atomic.hpp.
|
inline |
Definition at line 97 of file Atomic.hpp.
|
inline |
Decrement and test if the result is zero
Definition at line 104 of file Atomic.hpp.
|
inline |
Definition at line 95 of file Atomic.hpp.
|
inline |
Increment and test if the result is zero
Definition at line 111 of file Atomic.hpp.
Definition at line 68 of file Atomic.hpp.
|
inline |
Read the current value of the integer.
Definition at line 77 of file Atomic.hpp.
|
inline |
Set the integer to a new value.
Definition at line 82 of file Atomic.hpp.
|
inline |
Definition at line 86 of file Atomic.hpp.
|
inline |
Subtract a value and test if the result is zero
Definition at line 93 of file Atomic.hpp.
|
private |
Definition at line 51 of file Atomic.hpp.