#include <critsec.h>
Public Member Functions | |
| PAtomicInteger (long v=0) | |
| bool | IsZero () const |
| long | operator++ () |
| long | operator++ (int) |
| long | operator-- () |
| long | operator-- (int) |
| operator long () const | |
| void | SetValue (long v) |
Protected Attributes | |
| long | value |
| PAtomicInteger::PAtomicInteger | ( | long | v = 0 |
) | [inline] |
Create a PAtomicInteger with the specified initial value
| v | initial value |
| bool PAtomicInteger::IsZero | ( | ) | const [inline] |
Test if an atomic integer has a zero value. Note that this is a non-atomic test - use the return value of the operator++() or operator--() tests to perform atomic operations
| long PAtomicInteger::operator++ | ( | ) | [inline] |
atomically pre-increment the integer value
| long PAtomicInteger::operator++ | ( | int | ) | [inline] |
atomically post-increment the integer value
| long PAtomicInteger::operator-- | ( | ) | [inline] |
atomically pre-decrement the integer value
| long PAtomicInteger::operator-- | ( | int | ) | [inline] |
atomically post-decrement the integer value
| PAtomicInteger::operator long | ( | ) | const [inline] |
| void PAtomicInteger::SetValue | ( | long | v | ) | [inline] |
Set the value of the integer
| v | value to set |
long PAtomicInteger::value [protected] |
1.5.1