glib/tests/cond: Fix race condition
authorColin Walters <walters@verbum.org>
Thu, 23 May 2013 00:07:13 +0000 (01:07 +0100)
committerColin Walters <walters@verbum.org>
Thu, 23 May 2013 00:11:26 +0000 (01:11 +0100)
commitff8f37ac05490c67fc3be5e87ff5756f1a275da3
tree0586481a09ddc56a432bcc753384369fcc6ffc6a
parent9115dd0a7ce31f69f78aca0b0b32d7d2e4670be3
glib/tests/cond: Fix race condition

The producer could push two values with the first one being
lost.  Fix this by blocking the producer until a consumer
reads.
glib/tests/cond.c