Niklas Gürtler
Niklas Gürtler
How would I use `libusb_handle_events_completed()` to implement an event handling thread? Particularly, how would I set the "completed" flag, especially from outside an event handler? Should I manually acquire the...
PS: Isn't there also a race condition in `libusb_handle_events_timeout_completed`? If right after checking `completed` but *before* calling `handle_events` (i.e. during the [`usbi_debug statement`](https://github.com/libusb/libusb/blob/cc498ded18fb2c6e4506c546d0351c4ae91ef2cc/libusb/io.c#L2370)), `completed` is set to 1 by another...