Temporary workaround for event handling serialization issue
authorDaniel Drake <dsd@gentoo.org>
Thu, 29 May 2008 16:26:26 +0000 (17:26 +0100)
committerDaniel Drake <dsd@gentoo.org>
Thu, 29 May 2008 16:26:26 +0000 (17:26 +0100)
commit2d3a1111caff40ebb87983c861ff548cdc9e5946
tree1f412e2b3adb99ca4387617e08362d97679b4bb0
parent514bb8790cfe8b93ccfff82bc17081b1030acce0
Temporary workaround for event handling serialization issue

Ludovic Rousseau pointed out that libusb_unlock_events() is not called
when a thread gets terminated with a signal, meaning that event waiters
will not be woken up in this case.

Add a temporary hack to libusb_event_handler_active() so that at least
the other threads will realise on the next iteration of their event
handling loop.

The real fix will likely involve reworking most of this.
libusb/io.c