Class EventHandlingThread

  • All Implemented Interfaces:
    Runnable

    public class EventHandlingThread
    extends Thread
    Used to handle events sent by LibUsb when using asynchronous I/O.
    Author:
    James Elliott
    • Field Detail

      • context

        public final org.usb4java.Context context
        Tracks the LibUsb context for which we are handling events.
    • Constructor Detail

      • EventHandlingThread

        public EventHandlingThread​(org.usb4java.Context context)
        Constructor sets the LibUsb context for which events are being handled.
        Parameters:
        context - the context for which events should be handled.
    • Method Detail

      • abort

        public void abort()
        Shut down the event handling thread.
      • run

        public void run()
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread