diff options
author | Daniel Drake <dsd@gentoo.org> | 2008-11-20 15:31:10 +0000 |
---|---|---|
committer | Daniel Drake <dsd@gentoo.org> | 2008-11-21 10:44:34 +0000 |
commit | c32aa662769b676ff3247778664fccc71fc427ec (patch) | |
tree | d3c27ca15790286996169038b27ce3116d401627 /configure.ac | |
parent | 1d7cf3d0fa8698eae25097cbda1870be90ff6f5e (diff) | |
download | libusb-c32aa662769b676ff3247778664fccc71fc427ec.tar.gz |
Pause event handling while opening and closing devices
Ludovic Rousseau found that crashes often occur if you close a device
while another thread is doing event handling.
Fix this by adding an internal control pipe, which the close routines
use to interrupt the event handler and obtain the event handling lock,
ensuring that no other thread is handling events while the device is
closed. After the close completes, it signals all the event handlers
to start up again using the usual mechanism.
Also modified libusb_open() to do a similar thing, so that event
handlers are interrupted in order to realise that a new poll fd has
appeared.
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions