LibUsbDotNet 2.2.8
HandleEventsLocked Method (sessionHandle, tv)
Library ReferenceMonoLibUsbMonoUsbApiHandleEventsLocked(MonoUsbSessionHandle, UnixNativeTimeval%)
LibUsbDotNet on SourceForge
Handle any pending events by polling file descriptors, without checking if any other threads are already doing so.
Declaration Syntax
C#Visual BasicVisual C++
public static int HandleEventsLocked(
	MonoUsbSessionHandle sessionHandle,
	ref UnixNativeTimeval tv
Public Shared Function HandleEventsLocked ( _
	sessionHandle As MonoUsbSessionHandle, _
	ByRef tv As UnixNativeTimeval _
) As Integer
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
Return Value
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).

Note: Member documentation was originally generated using the Libusb-1.0 API documentation: Polling and timing

Assembly: LibUsbDotNet (Module: LibUsbDotNet) Version: (