aboutsummaryrefslogtreecommitdiff
path: root/dep/include/zthread/AtomicCount.h
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-12 17:09:15 -0600
committermegamage <none@none>2009-02-12 17:09:15 -0600
commit6aee5fcbe7473a3cbac12b7e8482a7b98bef8be3 (patch)
tree91ec91d5c19eba9c2fe0e84b1c9dc7047a3de80e /dep/include/zthread/AtomicCount.h
parent2d2f433b4de1c35b22aaf07854fc0ee11fcb350d (diff)
parentf385747164c3fb278c92ef46fbd6c3da6590bbf0 (diff)
*Merge.
--HG-- branch : trunk
Diffstat (limited to 'dep/include/zthread/AtomicCount.h')
-rw-r--r--dep/include/zthread/AtomicCount.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/dep/include/zthread/AtomicCount.h b/dep/include/zthread/AtomicCount.h
index ea042a7feb2..38e67dc0d0b 100644
--- a/dep/include/zthread/AtomicCount.h
+++ b/dep/include/zthread/AtomicCount.h
@@ -33,7 +33,7 @@ namespace ZThread {
/**
* @class AtomicCount
* @author Eric Crahen <http://www.code-foo.com>
- * @date <2003-07-16T09:41:55-0400>
+ * @date <2003-07-16T09:41:55-0400>
* @version 2.3.0
*
* This class provides an interface to a small integer whose value can be
@@ -42,33 +42,33 @@ namespace ZThread {
* counts.
*/
class ZTHREAD_API AtomicCount : public NonCopyable {
-
+
void* _value;
-
+
public:
-
+
//! Create a new AtomicCount, initialized to a value of 1
AtomicCount();
//! Destroy a new AtomicCount
~AtomicCount();
-
+
//! Postfix decrement and return the current value
size_t operator--(int);
-
+
//! Postfix increment and return the current value
- size_t operator++(int);
+ size_t operator++(int);
//! Prefix decrement and return the current value
size_t operator--();
-
+
//! Prefix increment and return the current value
- size_t operator++();
+ size_t operator++();
}; /* AtomicCount */
-
+
} // namespace ZThread
#endif // __ZTATOMICCOUNT_H__