[Boost-bugs] [Boost C++ Libraries] #1804: Check for EBUSY instead of ETIMEDOUT in thread/pthread/mutex.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #1804: Check for EBUSY instead of ETIMEDOUT in thread/pthread/mutex.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-04-10 00:52:16


#1804: Check for EBUSY instead of ETIMEDOUT in thread/pthread/mutex.hpp
------------------------------+---------------------------------------------
 Reporter: rchrist_at_[hidden] | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: Boost 1.36.0 | Component: thread
  Version: Boost 1.35.0 | Severity: Regression
 Keywords: |
------------------------------+---------------------------------------------
 I believe this code:

 bool timed_lock(system_time const & abs_time)
 {
     struct timespec const timeout=detail::get_timespec(abs_time);
     int const res=pthread_mutex_timedlock(&m,&timeout);
     BOOST_ASSERT(!res || res==EBUSY);
     return !res;
 }

 should test ETIMEDOUT not EBUSY.

 I couldn't find any other tickets for this and it appears to
 still be this way in the the svn trunk.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1804>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC