summaryrefslogtreecommitdiff
path: root/ACE/ace/Future.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2007-07-15 16:53:24 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2007-07-15 16:53:24 +0000
commit14dd1568847bdb1febce4646c385dc133f9b406e (patch)
tree9f6ae787d20ea97c7e59dde8d041b4059f4aaf0b /ACE/ace/Future.cpp
parentd4534e262604c6bb1e4166d61192cb9e4d108224 (diff)
downloadATCD-14dd1568847bdb1febce4646c385dc133f9b406e.tar.gz
Sun Jul 15 14:52:12 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ACE/ace/Future.cpp')
-rw-r--r--ACE/ace/Future.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ACE/ace/Future.cpp b/ACE/ace/Future.cpp
index d86ad4d5a10..2d273cfc093 100644
--- a/ACE/ace/Future.cpp
+++ b/ACE/ace/Future.cpp
@@ -1,4 +1,4 @@
-// $Id$
+ // $Id$
#ifndef ACE_FUTURE_CPP
#define ACE_FUTURE_CPP
@@ -110,7 +110,7 @@ ACE_Future_Rep<T>::detach (ACE_Future_Rep<T>*& rep)
// Use value_ready_mutex_ for both condition and ref count management
ACE_MT (ACE_GUARD (ACE_Recursive_Thread_Mutex, r_mon, rep->value_ready_mutex_));
- if (--rep->ref_count_ == 0)
+ if (rep->ref_count_-- == 0)
{
ACE_MT (r_mon.release ());
// We do not need the lock when deleting the representation.
@@ -132,7 +132,7 @@ ACE_Future_Rep<T>::assign (ACE_Future_Rep<T>*& rep, ACE_Future_Rep<T>* new_rep)
rep = new_rep;
// detached old last for exception safety
- if (--old->ref_count_ == 0)
+ if (old->ref_count_-- == 0)
{
ACE_MT (r_mon.release ());
// We do not need the lock when deleting the representation.