def stop(self):
        """Stop the thread performing the requests. Returns when the
        thread has been stopped"""
        # Send a terminate request to the terminating pipe.
        # Has to be called from outside the thread (otherwise: deadlock)
        os.write(self.__termpipe, "TERMINATE")
        self.__thread.join()
Stop the thread performing the requests. Returns when the
        thread has been stopped
recipes/Python/576509_CallPipe_Call_methods_object_remote/recipe-576509.py