AtomicCounter Class Reference

AtomicCounter wraps STL support for atomic increment/decrement. More...

#include <AtomicCounter.h>

List of all members.

Public Member Functions

 AtomicCounter ()
 operator uint () const
void clear ()
void operator++ ()
void operator-- ()


Detailed Description

AtomicCounter wraps STL support for atomic increment/decrement.

Definition at line 32 of file AtomicCounter.h.


Constructor & Destructor Documentation

AtomicCounter::AtomicCounter (  )  [inline, explicit]

Definition at line 35 of file AtomicCounter.h.

00035                              : _Refcount_Base(0)
00036     {
00037     }


Member Function Documentation

AtomicCounter::operator uint (  )  const [inline]

Definition at line 39 of file AtomicCounter.h.

00040     {
00041         return _M_ref_count;
00042     }

void AtomicCounter::clear (  )  [inline]

Definition at line 44 of file AtomicCounter.h.

Referenced by AioLinuxScheduler::AioLinuxScheduler().

00045     {
00046         _M_ref_count = 0;
00047     }

void AtomicCounter::operator++ (  )  [inline]

Definition at line 49 of file AtomicCounter.h.

00050     {
00051         _M_incr();
00052     }

void AtomicCounter::operator-- (  )  [inline]

Definition at line 54 of file AtomicCounter.h.

00055     {
00056         _M_decr();
00057     }


The documentation for this class was generated from the following file:
Generated on Mon Jun 22 04:00:24 2009 for Fennel by  doxygen 1.5.1