#include <AtomicOps.hpp>
Public Member Functions | |
| Atomic_t () | |
| Construct an Atomic_t structure with the value initialized to zero. | |
| Atomic_t (int i) | |
| Construct an Atomic_t structure with the value initialized to a given value. | |
Public Attributes | |
| int | val |
| The current value for theis Atomic_t. | |
| pthread_spinlock_t | spinlock |
Definition at line 276 of file AtomicOps.hpp.
| BLOCXX_NAMESPACE::Atomic_t::Atomic_t | ( | ) |
Construct an Atomic_t structure with the value initialized to zero.
Definition at line 46 of file AtomicOps.cpp.
References spinlock.
| BLOCXX_NAMESPACE::Atomic_t::Atomic_t | ( | int | i | ) |
Construct an Atomic_t structure with the value initialized to a given value.
| i | The value to initialize this Atomic_t to. |
Definition at line 51 of file AtomicOps.cpp.
References spinlock.
The current value for theis Atomic_t.
Definition at line 292 of file AtomicOps.hpp.
Referenced by BLOCXX_NAMESPACE::AtomicDec(), BLOCXX_NAMESPACE::AtomicDecAndTest(), BLOCXX_NAMESPACE::AtomicGet(), and BLOCXX_NAMESPACE::AtomicInc().
| pthread_spinlock_t BLOCXX_NAMESPACE::Atomic_t::spinlock |
Definition at line 294 of file AtomicOps.hpp.
Referenced by Atomic_t(), BLOCXX_NAMESPACE::AtomicDec(), BLOCXX_NAMESPACE::AtomicDecAndTest(), and BLOCXX_NAMESPACE::AtomicInc().
1.5.6