If you can read this text, it means you are not experiencing this website at its best. This website is designed for used with a standards-compliant browser.
Current version: 2.3.2
ZThreads
A platform-independent, multi-threading and synchronization library for C++
Home Documentation Downloads CVS Contact
AtomicCount Class Reference

#include <AtomicCount.h>

Inheritance diagram for AtomicCount:
NonCopyable

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.
 

Additional Inherited Members

- Protected Member Functions inherited from NonCopyable
 NonCopyable ()
 Create a NonCopyable object.
 
 ~NonCopyable ()
 Destroy a NonCopyable object.
 

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 file: