|
Boost Users : |
Subject: Re: [Boost-users] [thread] assertion error in timed_lock
From: Anthony Williams (anthony.ajw_at_[hidden])
Date: 2009-01-11 16:22:59
"Ernst Murnleitner" <mur_at_[hidden]> writes:
> Sometimes - especially if I start the program with valgrind - my program exits
> with
>
> /usr/include/boost/thread/pthread/recursive_mutex.hpp:180: bool
> boost::recursive_timed_mutex::timed_lock(const boost::system_time&): Assertion
> `!res || res==16' failed.
>
>
> The line 180 is in this function:
>
> 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;
> }
>
> pthread_mutex_timedlock returned ETIMEDOUT.
This bug has already been fixed.
Anthony
-- Anthony Williams | Just Software Solutions Ltd Custom Software Development | http://www.justsoftwaresolutions.co.uk Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net