Boost logo

Boost Users :

From: Anthony Williams (anthony.ajw_at_[hidden])
Date: 2008-08-15 16:18:40


"Eduardo Tavares" <eetavares_at_[hidden]> writes:

> I&#39;m having problems using recursive_timed_mutex::timed_lock() on
> Linux -- an assertion failure occurs at line 171
> (thread/pthread/recursive_mutex.hpp) : pthread_mutex_timedlock()
> returns ETIMEDOUT instead of expected EBUSY.
>
>
> After some hours of headache I checked out it&#39;s cousin --
> mutex::timed_lock() -- and realized the (in my opinion) correct
> implementation.
>
> Is it a bug in recursive_timed_mutex.hpp ?

Yes, it looks like it. Thanks for spotting it.

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