(self)
Close (destroy) this USB context.

        When this method has been called, methods on its instance will
        become mosty no-ops, returning None.
Close (destroy) this USB context.
Close ( destroy ) this USB context .
def exit(self):
        """
        Close (destroy) this USB context.

        When this method has been called, methods on its instance will
        become mosty no-ops, returning None.
        """
        self.__context_cond.acquire()
        try:
            while self.__context_refcount and self.__context_p is not None:
                self.__context_cond.wait()
            self._exit()
        finally:
            self.__context_cond.notifyAll()
            self.__context_cond.release()
def exit ( self ) : self . __context_cond . acquire ( ) try : while self . __context_refcount and self . __context_p is not None : self . __context_cond . wait ( ) self . _exit ( ) finally : self . __context_cond . notifyAll ( ) self . __context_cond . release ( )