#include <critsec.h>
Public Member Functions | |
PAtomicInteger (long v=0) | |
BOOL | IsZero () const |
long | operator++ () |
long | operator-- () |
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 increment the integer value
long PAtomicInteger::operator-- | ( | ) | [inline] |
atomically 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] |