Nice catch. Keeping the first check only works because the signaling field
prevent us from releasing the condition too early. I added some comments
around the code (131fe42d).
George.
On Wed, Sep 21, 2016 at 5:33 AM, Nathan Hjelm wrote:
> Yeah, that looks like a bug to me. We need to keep the
Yeah, that looks like a bug to me. We need to keep the check before the lock
but otherwise this is fine and should be fixed in 2.0.2.
-Nathan
> On Sep 21, 2016, at 3:16 AM, DEVEZE, PASCAL wrote:
>
> I encountered a deadlock in sync_wait_mt().
>
> After investigations, it appears that a first