Thomas Stalder wrote: > Hello, > > Sometimes pthread_mutex_lock ou pthread_mutex_unlock block.
Thank you very much for the simple testcases. I have located an invalid racy optimisation in cygwin's internal lock handling that leads to a deadlock owing to unmatched lock acquire/releases, and posted a patch combining that with the fix for the previous deadlock at: http://cygwin.com/ml/cygwin-patches/2009-q2/msg00068.html (As before, I could send you a DLL with the fix compiled in off-list for testing if you like.) cheers, DaveK -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/