(self, context, poller, exc_callback=None)
Create a poller thread for given context.
        Warning: it will not check if another poller instance was already
        present for that context, and will replace it.

        poller
            (same as USBPoller.__init__ "poller" parameter)

        exc_callback (callable)
          Called with a libusb_error value as single parameter when event
          handling fails.
          If not given, an USBError will be raised, interrupting the thread.
Create a poller thread for given context.
        Warning: it will not check if another poller instance was already
        present for that context, and will replace it.
Create a poller thread for given context . Warning : it will not check if another poller instance was already present for that context and will replace it .
def __init__(self, context, poller, exc_callback=None):
        """
        Create a poller thread for given context.
        Warning: it will not check if another poller instance was already
        present for that context, and will replace it.

        poller
            (same as USBPoller.__init__ "poller" parameter)

        exc_callback (callable)
          Called with a libusb_error value as single parameter when event
          handling fails.
          If not given, an USBError will be raised, interrupting the thread.
        """
        super(USBPollerThread, self).__init__()
        self.daemon = True
        self.__context = context
        self.__poller = poller
        self.__fd_set = set()
        context.setPollFDNotifiers(self._registerFD, self._unregisterFD)
        for fd, events in context.getPollFDList():
            self._registerFD(fd, events, None)
        if exc_callback is not None:
            self.exceptionHandler = exc_callback
def __init__ ( self , context , poller , exc_callback = None ) : super ( USBPollerThread , self ) . __init__ ( ) self . daemon = True self . __context = context self . __poller = poller self . __fd_set = set ( ) context . setPollFDNotifiers ( self . _registerFD , self . _unregisterFD ) for fd , events in context . getPollFDList ( ) : self . _registerFD ( fd , events , None ) if exc_callback is not None : self . exceptionHandler = exc_callback