![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXAtomic.h>
Public Member Functions | |
| FXAtomicInt (FXint v=0) | |
| FXAtomicInt & | operator= (FXint v) |
| operator FXint () const | |
| FXint | get () const |
| FXint | set (FXint v) |
| FXint | cas (FXint expect, FXint v) |
| FXAtomicInt & | operator+= (FXint v) |
| FXAtomicInt & | operator-= (FXint v) |
| FXAtomicInt & | operator|= (FXint v) |
| FXAtomicInt & | operator &= (FXint v) |
| FXAtomicInt & | operator^= (FXint v) |
| FXint | operator++ () |
| FXint | operator-- () |
| int | operator++ (FXint) |
| FXint | operator-- (FXint) |
| FX::FXAtomicInt::FXAtomicInt | ( | FXint | v = 0 |
) | [inline] |
Constructs an atomic integer with a given initial value.
| FXAtomicInt& FX::FXAtomicInt::operator= | ( | FXint | v | ) | [inline] |
Assign from value.
| FX::FXAtomicInt::operator FXint | ( | ) | const [inline] |
Returns current value of the integer.
| FXint FX::FXAtomicInt::get | ( | ) | const [inline] |
Returns current value of the integer.
If variable is equal to expect, set it to v; returns old value.
| FXAtomicInt& FX::FXAtomicInt::operator+= | ( | FXint | v | ) | [inline] |
Atomically add v to the variable.
| FXAtomicInt& FX::FXAtomicInt::operator-= | ( | FXint | v | ) | [inline] |
Atomically substract v from the variable.
| FXAtomicInt& FX::FXAtomicInt::operator|= | ( | FXint | v | ) | [inline] |
Atomically bitwise-or v to the variable.
| FXAtomicInt& FX::FXAtomicInt::operator &= | ( | FXint | v | ) | [inline] |
Atomically bitwise-and v to the variable.
| FXAtomicInt& FX::FXAtomicInt::operator^= | ( | FXint | v | ) | [inline] |
Atomically bitwise-xor v to the variable.
| FXint FX::FXAtomicInt::operator++ | ( | ) | [inline] |
Atomically increment the integer, prefix version.
| FXint FX::FXAtomicInt::operator-- | ( | ) | [inline] |
Atomically decrement the integer, prefix version.
| int FX::FXAtomicInt::operator++ | ( | FXint | ) | [inline] |
Atomically increment value, postfix version.
|
|