LibUsbDotNet 2.2.8
HandleEventsTimeout Method (sessionHandle, tv)
Library Reference ► MonoLibUsb ► MonoUsbApi ► HandleEventsTimeout(MonoUsbSessionHandle, UnixNativeTimeval%)
|
Handle any pending events.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static int HandleEventsTimeout( MonoUsbSessionHandle sessionHandle, ref UnixNativeTimeval tv )
Public Shared Function HandleEventsTimeout ( _ sessionHandle As MonoUsbSessionHandle, _ ByRef tv As UnixNativeTimeval _ ) As Integer
public: static int HandleEventsTimeout( [InAttribute] MonoUsbSessionHandle^ sessionHandle, UnixNativeTimeval% tv )
Parameters
- sessionHandle (MonoUsbSessionHandle)
- A valid MonoUsbSessionHandle.
- tv (UnixNativeTimeval%)
- The maximum time to block waiting for events, or zero for non-blocking mode
Return Value
0 on success, or a MonoUsbError code on other failure.
Remarks
libusb determines "pending events" by checking if any timeouts have expired and by checking the set of file descriptors for activity.
If a non-zero timeval is passed and no events are currently pending, this function will block waiting for events to handle up until the specified timeout. If an event arrives or a signal is raised, this function will return early.
Note:
Member documentation was originally generated using the Libusb-1.0 API documentation:
Polling and timing