ZThread::AtomicCount Class Reference

#include <AtomicCount.h>

Inheritance diagram for ZThread::AtomicCount:

ZThread::NonCopyable List of all members.

Public Member Functions

 AtomicCount ()
 Create a new AtomicCount, initialized to a value of 1.
 ~AtomicCount ()
 Destroy a new AtomicCount.
size_t operator-- (int)
 Postfix decrement and return the current value.
size_t operator++ (int)
 Postfix increment and return the current value.
size_t operator-- ()
 Prefix decrement and return the current value.
size_t operator++ ()
 Prefix increment and return the current value.

Detailed Description

Author:
Eric Crahen <http://www.code-foo.com>
Date:
<2003-07-16T09:41:55-0400>
Version:
2.3.0
This class provides an interface to a small integer whose value can be incremented or decremented atomically. It's designed to be as simple and lightweight as possible so that it can be used cheaply to create reference counts.


The documentation for this class was generated from the following files:
Generated on Wed Aug 30 03:27:47 2006 for SWG EMU by  doxygen 1.4.7