Hi,
in an Apache module I am in the need to wait for a global lock (e.g. an
apr_global_mutex_t), but in theory the lock might not get released by
the other process in a timely manner, so I would like to limit the time
to wait for the lock. What do you suggest me to do?
Any suggestions are
Hi Yann,
On 30.09.2014 18:16, Yann Ylavic wrote:
On Tue, Sep 30, 2014 at 5:30 PM, Yann Ylavic ylavic@gmail.com wrote:
I have been working on a patch to provide
apr_[thread/proc]_mutex_timedlock() in APR, [...]
I think that is exactly what I was looking for...
Your idea to use the native
Hi Yann,
Am 20.03.2015 um 02:59 schrieb Yann Ylavic:
a few times later, commited in [1] and [2] :)
Wow, thanks for coming back to that issue.
Can you please check if it works for you?
I only had time to review the code changes. I looked at the
implementation of apr_global_mutex_timedlock().
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
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