|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r48997 - trunk/boost/thread/pthread
From: anthony_at_[hidden]
Date: 2008-09-29 05:04:14
Author: anthonyw
Date: 2008-09-29 05:04:13 EDT (Mon, 29 Sep 2008)
New Revision: 48997
URL: http://svn.boost.org/trac/boost/changeset/48997
Log:
fixed check on return code from pthread_mutex_timedlock
Text files modified:
trunk/boost/thread/pthread/recursive_mutex.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/boost/thread/pthread/recursive_mutex.hpp
==============================================================================
--- trunk/boost/thread/pthread/recursive_mutex.hpp (original)
+++ trunk/boost/thread/pthread/recursive_mutex.hpp 2008-09-29 05:04:13 EDT (Mon, 29 Sep 2008)
@@ -177,7 +177,7 @@
{
struct timespec const timeout=detail::get_timespec(abs_time);
int const res=pthread_mutex_timedlock(&m,&timeout);
- BOOST_ASSERT(!res || res==EBUSY);
+ BOOST_ASSERT(!res || res==ETIMEDOUT);
return !res;
}
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