Handle any pending events by polling file descriptors, without checking if any other threads are already doing so.

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
public: static int HandleEventsLocked( [InAttribute] MonoUsbSessionHandle^ sessionHandle, UnixNativeTimeval% tv )

- sessionHandle (MonoUsbSessionHandle)
- A valid MonoUsbSessionHandle.
- tv (UnixNativeTimeval%)
- The maximum time to block waiting for events, or zero for non-blocking mode

0 on success, or a MonoUsbError code on other failure.

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).
