Hi!

On 5 May 2016 17:42, "Sergey Vojtovich" <svoj@mariadb.org> wrote:
>
> Hi Monty,
>
> Thanks for you reply. Please allow me to disagree with some points. :)
>
> Attached please find 2 patches, both fix this memory leak. One approach is
> for detached threads, another one is for joinable threads.

Sorry, I missed the part about service threads. For these I don't mind to use joinable threads.

Just one question:
How to handle hanged threads?
With the old code we could, if this would ever be a problem, just change cond_wait to cond_timed_wait.
Don't know how to do this with joinable threads, except using alarms which is a bit of code (20 lines)

Regards,
Monty