|C#||Visual Basic||Visual C++|
public static int HandleEventsLocked( MonoUsbSessionHandle sessionHandle, ref UnixNativeTimeval tv )
Public Shared Function HandleEventsLocked ( _ sessionHandle As MonoUsbSessionHandle, _ ByRef tv As UnixNativeTimeval _ ) As Integer
Must be called with the event lock held, see libusb_lock_events.
This function is designed to be called under the situation where you have taken the event lock and are calling poll()/select() directly on libusb's file descriptors (as opposed to using libusb_handle_events or similar). You detect events on libusb's descriptors, so you then call this function with a zero timeout value (while still holding the event lock).