summaryrefslogtreecommitdiff
path: root/ace/Message_Queue.cpp
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1998-06-12 20:04:04 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1998-06-12 20:04:04 +0000
commitead1627904300253daef9408bd2f838bced89c59 (patch)
treec15f9d137d21019a5610feff0d8f9fbc06f50331 /ace/Message_Queue.cpp
parent73a795d587c9d573d2bd84932312f78583faba28 (diff)
downloadATCD-ead1627904300253daef9408bd2f838bced89c59.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Message_Queue.cpp')
-rw-r--r--ace/Message_Queue.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/ace/Message_Queue.cpp b/ace/Message_Queue.cpp
index 120676ceca8..0f88914a3ed 100644
--- a/ace/Message_Queue.cpp
+++ b/ace/Message_Queue.cpp
@@ -496,7 +496,9 @@ ACE_Message_Queue<ACE_SYNCH_USE>::wait_not_full_cond (ACE_Guard<ACE_SYNCH_MUTEX_
result = this->not_full_cond_.acquire ();
else
result = this->not_full_cond_.acquire (*tv);
+ int error = errno;
mon.acquire ();
+ errno = error;
}
#else
ACE_UNUSED_ARG (mon);
@@ -542,7 +544,9 @@ ACE_Message_Queue<ACE_SYNCH_USE>::wait_not_empty_cond (ACE_Guard<ACE_SYNCH_MUTEX
if (result == -1 && errno == ETIME)
errno = EWOULDBLOCK;
}
+ int error = errno;
mon.acquire ();
+ errno = error;
}
#else
ACE_UNUSED_ARG (mon);