windows XP threads: fix hilariously obvious race
authorRyan Lortie <desrt@desrt.ca>
Thu, 15 Dec 2011 18:27:27 +0000 (13:27 -0500)
committerRyan Lortie <desrt@desrt.ca>
Fri, 16 Dec 2011 15:54:42 +0000 (10:54 -0500)
commit11015f165229ac3cb5f008a8824f8135ec45c89a
treec7f3df5ecbc32388bb4cbb2d7abdad7943a6cb7f
parentfcc9902e98a6a6568a1150441c8680fd4615d437
windows XP threads: fix hilariously obvious race

I tried to do a double-checked lock without the double check.

Rodrigo Rivas Costa caught the problem and suggested the (obviously
correct) fix.

https://bugzilla.gnome.org/show_bug.cgi?id=666296
glib/gthread-win32.c