|
Nebula
|
#include <interlocked.h>
Atomic value only used to decrement, increment and read a 64 bit value.
Public Member Functions | |
| AtomicCounter64 () | |
| AtomicCounter64 (int64 initial) | |
| Constructor. | |
| bool | operator== (int64 value) const |
| Equals. | |
| bool | operator!= (int64 value) const |
| Not-equals. | |
| bool | operator> (int64 value) const |
| Greater. | |
| bool | operator>= (int64 value) const |
| Greater or equal. | |
| bool | operator< (int64 value) const |
| Less. | |
| bool | operator<= (int64 value) const |
| Less or equal. | |
| int | Increment () |
| Increment and return the new value. | |
| int | Decrement () |
| Decrement and return the new value. | |
| int64 | Add (int64 addend) |
| Add and return the old value. | |
| int64 | Subtract (int64 subtractor) |
| Subtract and return the old value. | |
| int64 | Exchange (int64 value) |
| Exchange and return the old value. | |
| void | RaceDecrement () |
| Unsafe decrement, only use before or after contention is possible. | |
| void | RaceIncrement () |
| Unsafe increment, only use before or after contention is possible. | |
| void | RaceExchange (int64 value) |
| Unsafe exchange, only use before or after contention is possible. | |
Public Attributes | |
| volatile int64 | counter |
|
inline |
|
inline |
Constructor.
Add and return the old value.
|
inline |
Decrement and return the new value.
Exchange and return the old value.
|
inline |
Increment and return the new value.
|
inline |
Not-equals.
|
inline |
Less.
|
inline |
Less or equal.
|
inline |
Equals.
|
inline |
Greater.
|
inline |
Greater or equal.
|
inline |
Unsafe decrement, only use before or after contention is possible.
|
inline |
Unsafe exchange, only use before or after contention is possible.
|
inline |
Unsafe increment, only use before or after contention is possible.
Subtract and return the old value.
| volatile int64 Threading::Interlocked::AtomicCounter64::counter |