#include <at_atomic.h>
Public Methods | |
| AtomicCount (AtomicCountType l_atomic_count=0) | |
| AtomicCountType | operator++ () |
| AtomicCountType | operator-- () |
| AtomicCountType | operator++ (int) |
| AtomicCountType | operator-- (int) |
| AtomicCountType | Get () const |
| AtomicCountType | Bump (AtomicCountType i_add_val) |
| AtomicCountType | Exchange (AtomicCountType i_new_val) |
| AtomicCountType | CompareExchange (AtomicCountType i_new_val, AtomicCountType i_compare_val) |
|
|
AtomicCount constructor.
|
|
|
Bump adds a value and returns the prior value.
|
|
||||||||||||
|
Compare exchange will perform a "test and set" operation. If the value
|
|
|
Exchange will exchange a value with another value returning the original value.
|
|
|
Get will get the current value of this AtomicCount. This is only safe to use when the application can assert that the value will not be changed in a way that will cause it's assumptions to fail.
|
|
|
|
|
|
|
|
|
|
|
|
|
Generated for Austria by
and
MakeXS at Sun Oct 24 17:35:34 PDT 2004