Method | Description | |
---|---|---|
Exit ( ) : void |
Stops the handle events thread and closes the session handle.
|
|
Init ( ) : void |
Initializes the SessionHandle. If the session has already been initialized, this method does nothing. The handle events thread is not started until the Start method is called. Uses the MonoLibUsb UnixNativeTimeval.Default polling interval for MonoUsbApi.HandleEventsTimeout. |
|
Init ( long tvSec, long tvUsec ) : void |
Initializes the SessionHandle and sets a custom polling interval.
|
|
Start ( ) : bool |
Starts the handle events thread. If the thread is already running, this method does nothing. Using a seperate thread which executes MonoUsbApi.HandleEventsTimeout can simplify asynchronous I/O and improve performance in multi-threaded applications which use multiple endpoints. |
|
Stop ( bool bWait ) : void |
Stops the handle events thread. Calling this method when the thread is not running will have no affect. |
Method | Description | |
---|---|---|
HandleEventFn ( object oHandle ) : void | ||
Init ( |
public static Init ( long tvSec, long tvUsec ) : void | ||
tvSec | long | polling interval seconds |
tvUsec | long | polling interval milliseconds |
return | void |
public static Stop ( bool bWait ) : void | ||
bWait | bool | If true, wait for the thread to exit before returning. |
return | void |