|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r50146 - trunk/boost/interprocess/ipc
From: igaztanaga_at_[hidden]
Date: 2008-12-05 17:57:51
Author: igaztanaga
Date: 2008-12-05 17:57:51 EST (Fri, 05 Dec 2008)
New Revision: 50146
URL: http://svn.boost.org/trac/boost/changeset/50146
Log:
ticket 2570: boost::interprocess::message_queue::timed_send and timed_receive bug
Text files modified:
trunk/boost/interprocess/ipc/message_queue.hpp | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
Modified: trunk/boost/interprocess/ipc/message_queue.hpp
==============================================================================
--- trunk/boost/interprocess/ipc/message_queue.hpp (original)
+++ trunk/boost/interprocess/ipc/message_queue.hpp 2008-12-05 17:57:51 EST (Fri, 05 Dec 2008)
@@ -465,8 +465,11 @@
case timed :
do{
- if(!p_hdr->m_cond_send.timed_wait(lock, abs_time))
- return !p_hdr->is_full();
+ if(!p_hdr->m_cond_send.timed_wait(lock, abs_time)){
+ if(p_hdr->is_full())
+ return false;
+ break;
+ }
}
while (p_hdr->is_full());
break;
@@ -555,7 +558,9 @@
case timed :
do{
if(!p_hdr->m_cond_recv.timed_wait(lock, abs_time))
- return !p_hdr->is_empty();
+ if(p_hdr->is_empty())
+ return false;
+ break;
}
while (p_hdr->is_empty());
break;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk