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

AtomicCount Class Reference

#include <AtomicCount.h>

Inheritance diagram for AtomicCount:

NonCopyable List of all members.

Public Methods

 AtomicCount ()
 Create a new AtomicCount, initialized to a value of 1.

 ~AtomicCount ()
 Destroy a new AtomicCount.

void increment ()
 Increment and return the current value.

bool decrement ()
 Decrement and return the current value, return true if the count has reached 0.


Detailed Description

Author:
Eric Crahen <crahen@cse.buffalo.edu>
Date:
<2002-08-09T05:27:26-0400>
Version:
2.2.5
This class provides an inferance to a small integer whose value can be incremented or decremented atomically. It's designed to be as simple and lightwieght as possible so that it can be used cheaply to create reference counts.


The documentation for this class was generated from the following file:
Generated on Tue Aug 27 07:43:10 2002 for ZThread by doxygen1.2.17