#include <SYS_AtomicInt.h>
Public Member Functions | |
| SYS_AtomicInt32 (int32 value=0) | |
| int32 | exchange (int32 val) |
| int32 | exchangeAdd (int32 val) |
| int32 | add (int32 val) |
| Atomically adds val to myValue, returning the new value of myValue. | |
| void | maximum (int32 val) |
| Atomically set myValue to the maximum of val and myValue. | |
| void | set (int32 val) |
| operator int32 () const | |
Definition at line 24 of file SYS_AtomicInt.h.
| SYS_AtomicInt32::SYS_AtomicInt32 | ( | int32 | value = 0 |
) | [inline, explicit] |
Definition at line 27 of file SYS_AtomicInt.h.
Atomically adds val to myValue, returning the new value of myValue.
Definition at line 264 of file SYS_AtomicIntImpl.h.
Note that to use any of these three methods you must include SYS_AtomicIntImpl. Do *not* include that file in a .h file as it brings in windows.h! Atomically assigns val to myValue, returning the prior value of myValue.
Atomically assigns val to myValue, returning the prior value of myValue.
Definition at line 245 of file SYS_AtomicIntImpl.h.
Atomically adds val to myValue, returning the prior value of myValue.
Definition at line 253 of file SYS_AtomicIntImpl.h.
| SYS_ATOMIC_INLINE void SYS_AtomicInt32::maximum | ( | int32 | val | ) | [inline] |
Atomically set myValue to the maximum of val and myValue.
Definition at line 274 of file SYS_AtomicIntImpl.h.
| SYS_AtomicInt32::operator int32 | ( | ) | const [inline] |
Definition at line 48 of file SYS_AtomicInt.h.
| void SYS_AtomicInt32::set | ( | int32 | val | ) | [inline] |
Definition at line 47 of file SYS_AtomicInt.h.
1.5.9