Fix an invalid non-looping use of GCond
authorRyan Lortie <desrt@desrt.ca>
Tue, 4 Oct 2011 15:07:15 +0000 (11:07 -0400)
committerRyan Lortie <desrt@desrt.ca>
Tue, 4 Oct 2011 15:57:35 +0000 (11:57 -0400)
commit449a1e8bfd0ea7e8db1e3a436cf182b5cc71aa75
treecfa0823dbd9630ed95dc0f744c39773c47d6b0b0
parentc474cd71ba3fe205865966c4a1467916597d43c4
Fix an invalid non-looping use of GCond

The GIOScheduler was using a GCond in a way that didn't deal with the
possibility of spurious wakeups.  Add an explicit predicate and a loop.

Problem caught by Matthias Clasen.

https://bugzilla.gnome.org/show_bug.cgi?id=660739
gio/gioscheduler.c