aboutsummaryrefslogtreecommitdiff
path: root/dep/src/zthread/IntrusivePtr.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/src/zthread/IntrusivePtr.h
parent2d2f433b4de1c35b22aaf07854fc0ee11fcb350d (diff)
parentf385747164c3fb278c92ef46fbd6c3da6590bbf0 (diff)
*Merge.
--HG-- branch : trunk
Diffstat (limited to 'dep/src/zthread/IntrusivePtr.h')
-rw-r--r--dep/src/zthread/IntrusivePtr.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/dep/src/zthread/IntrusivePtr.h b/dep/src/zthread/IntrusivePtr.h
index 47d5afbfcb8..189ebaf8ad7 100644
--- a/dep/src/zthread/IntrusivePtr.h
+++ b/dep/src/zthread/IntrusivePtr.h
@@ -35,16 +35,16 @@ namespace ZThread {
* @version 2.2.0
*
* This template creates an intrusively reference counted object
- * an IntrusivePtr starts out with a 1 count, which is updated as references are
- * added and removed. When the reference count drops to 0, the
- * IntrusivePtr will delete itself.
+ * an IntrusivePtr starts out with a 1 count, which is updated as references are
+ * added and removed. When the reference count drops to 0, the
+ * IntrusivePtr will delete itself.
*/
template <typename T, class LockType>
class IntrusivePtr : NonCopyable {
-
+
//! Intrusive reference count
size_t _count;
-
+
//! Synchornization object
LockType _lock;
@@ -54,7 +54,7 @@ public:
* Create an IntrusivePtr with a count.
*/
IntrusivePtr(size_t InitialCount=1) : _count(InitialCount) { }
-
+
/**
* Destroy an IntrusivePtr
*/
@@ -67,7 +67,7 @@ public:
void addReference() {
Guard<LockType, LockedScope> g(_lock);
- _count++;
+ _count++;
}