Re: How to wait on a global lock with timeout

2015-05-16 Thread Micha Lenk
Hi Yann, thanks for your explanation. Am 16.05.2015 um 19:05 schrieb Yann Ylavic: Trying to get locked mutex... timed out after 1 second (expected) Child trying to unlock the mutex got 1 (unexpected) Trying to get locked mutex... timed out after 2 seconds (unexpected) Did I do anything

Re: How to wait on a global lock with timeout

2015-05-16 Thread Yann Ylavic
Hi Micha, On Sat, May 16, 2015 at 5:22 PM, Micha Lenk mi...@lenk.info wrote: Sorry, took me a while to give your patch a try. As the patch didn't apply cleanly to trunk (ie. SVN rev. 1676013), I assume that it is already applied in trunk. So I went ahead without applying your patch. Is this

Re: How to wait on a global lock with timeout

2015-05-16 Thread Micha Lenk
Hi Yann, Am 25.03.2015 um 09:56 schrieb Yann Ylavic: To mitigate that design flaw I would provide the timeout by reference and update it by the functions using it. This has also the nice benefit that the caller is able to retrieve the time it needed to wait. By doing so, you have to get the