Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

at::AtomicCount Class Reference

#include <at_atomic.h>

List of all members.

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)


Detailed Description

AtomicCount performs basic atomic count functionality.


Constructor & Destructor Documentation

at::AtomicCount::AtomicCount AtomicCountType    l_atomic_count = 0 [inline]
 

AtomicCount constructor.

Parameters:
l_atomic_count  allows the count to be initialized


Member Function Documentation

AtomicCountType at::AtomicCount::Bump AtomicCountType    i_add_val [inline]
 

Bump adds a value and returns the prior value.

Parameters:
i_add_val  The value to add
Returns:
The value before adding

AtomicCountType at::AtomicCount::CompareExchange AtomicCountType    i_new_val,
AtomicCountType    i_compare_val
[inline]
 

Compare exchange will perform a "test and set" operation. If the value

Parameters:
i_new_val  the new value to place in this AtomicCount
i_compare_val  the value to compare to this to decide to perform the exchange.
Returns:
The previous of this

AtomicCountType at::AtomicCount::Exchange AtomicCountType    i_new_val [inline]
 

Exchange will exchange a value with another value returning the original value.

Parameters:
i_new_val  the new value to place in this AtomicCount
Returns:
The previous of this

AtomicCountType at::AtomicCount::Get   const [inline]
 

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.

Returns:
nothing

AtomicCountType at::AtomicCount::operator++ int    [inline]
 

Returns:
the count

AtomicCountType at::AtomicCount::operator++   [inline]
 

Returns:
the count

AtomicCountType at::AtomicCount::operator-- int    [inline]
 

Returns:
the count

AtomicCountType at::AtomicCount::operator--   [inline]
 

Returns:
the count


The documentation for this class was generated from the following file:

Generated for Austria by doxygen and MakeXS at Sun Oct 24 17:35:34 PDT 2004