recursive_timed_mutex::timed_lock()
Hello ALL, I'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's cousin -- mutex::timed_lock() -- and realized the (in my opinion) correct implementation. Is it a bug in recursive_timed_mutex.hpp ? Thanks in advance. Eduardo Tavares.
"Eduardo Tavares"
I'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'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
participants (2)
-
Anthony Williams
-
Eduardo Tavares