Take lock before raising event waiters condition
authorDaniel Drake <dsd@gentoo.org>
Sun, 25 May 2008 21:59:09 +0000 (22:59 +0100)
committerDaniel Drake <dsd@gentoo.org>
Sun, 25 May 2008 21:59:09 +0000 (22:59 +0100)
commit4cd249388e4ed2ca03f1263984ab67df5030bb65
tree409dbe0d9d71922872937ee461abddf5478d4ed2
parent7c525480ab3c4db9205bfe30bb0d2bef9096c444
Take lock before raising event waiters condition

This avoids a race between the user checking for active event handler
and then blocking on the condition variable
libusb/io.c