mirror of
https://git.code.sf.net/p/mingw-w64/mingw-w64
synced 2024-12-18 14:27:58 +08:00
330025c54b
Since holding sema_b before aquiring waiters_count_lock_ can lead to deadlocks try to aquire waiters_count_lock_ opportunistically. If it fails then release sema_b and sched_yield() to give the other thread (which has aquired waiters_count_lock_ and is now waiting on sema_b) a chance to aquire sema_b before we retry the whole procedure. Signed-off-by: Liu Hao <lh_mouse@126.com> |
||
---|---|---|
.. | ||
libmangle | ||
pseh | ||
winpthreads | ||
winstorecompat |