summaryrefslogtreecommitdiff
path: root/ace/Synch_T.h
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1998-05-29 22:50:05 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1998-05-29 22:50:05 +0000
commitc584ab303847ce279877e10abf6a890cabdc69c0 (patch)
tree1a258c8985fb0de25a0e30d1635eafe738db6aa6 /ace/Synch_T.h
parentd712b4d6fda1faf29d08829d1d01b3845ffb35b2 (diff)
downloadATCD-c584ab303847ce279877e10abf6a890cabdc69c0.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Synch_T.h')
-rw-r--r--ace/Synch_T.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/ace/Synch_T.h b/ace/Synch_T.h
index 3ae81c6a6f1..7272a1c2431 100644
--- a/ace/Synch_T.h
+++ b/ace/Synch_T.h
@@ -337,7 +337,12 @@ public:
// Implicitly and automatically acquire (or try to acquire) the
// lock.
- ~ACE_Guard (void) { this->release (); }
+ ~ACE_Guard (void)
+ {
+ int error = errno;
+ this->release ();
+ errno = error;
+ }
// Implicitly release the lock.
// = Lock accessors.