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
commitf7b87eb6c7a17d0db315977a83fde6e11881c5cd (patch)
tree1a258c8985fb0de25a0e30d1635eafe738db6aa6 /ace/Synch_T.h
parent2594d118d56ad13b73f4a6c0d6366da501f4b9d8 (diff)
downloadATCD-f7b87eb6c7a17d0db315977a83fde6e11881c5cd.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.