在 2019/4/30 上午1:45, Andrew Ng 写道:
> I have tried out this patch and it appears to resolve the main LLD deadlock
> issues. Some deadlocks still occur when running the LLD test suite, but
> this is kind of expected.
> 

hmm what caused deadlocks on those test programs?

> My only slight concern is that there is a wait for `sema_b` in
> pthread_cond_destroy which occurs without the `waiters_count_lock_` locked.
> However, this wait is also an `interruptible` one, which might make a
> difference.
> 

POSIX says no thread shall be waiting on the CV when
`pthread_cond_destroy()` is called. It might be unnecessary to wait for
it there, but I am not gonna change existent code.

-- 
Best regards,
LH_Mouse



Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to