Do not blindly favor writers
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 6 Jul 2009 20:50:03 +0000 (23:50 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 6 Jul 2009 20:50:03 +0000 (23:50 +0300)
commit88e839df430ea2f677356d59db6884586978699c
tree2c20f4bf557eb78ec7d6c179ef88d5892cfbd713
parent5662f3a4e2d210ef26a29b31c181249f928bc80e
Do not blindly favor writers

This fixes a corner case:
A: rdlock -> OK
B: wrlock -> sleeps
A: rdlock -> dead lock
src/misc/w32thread.c