Opened 15 years ago
Closed 15 years ago
#1804 closed Bugs (fixed)
Check for EBUSY instead of ETIMEDOUT in thread/pthread/mutex.hpp
Reported by: | Owned by: | Anthony Williams | |
---|---|---|---|
Milestone: | Boost 1.36.0 | Component: | thread |
Version: | Boost 1.35.0 | Severity: | Regression |
Keywords: | Cc: |
Description
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.
Note:
See TracTickets
for help on using tickets.