#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 |
|
Create a PAtomicInteger with the specified initial value |
|
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
|
|
|
|
atomically increment the integer value
|
|
atomically decrement the integer value
|
|
Set the value of the integer |
|
|