def _wait_non_ressources(self, callback):
        """This get started as a thread, and waits for the data lock to be freed then advertise itself to the SelectableSelector using the callback"""  # noqa: E501
        self.trigger = threading.Lock()
        self.was_ended = False
        self.trigger.acquire()
        self.trigger.acquire()
        if not self.was_ended:
            callback(self)
def _wait_non_ressources ( self , callback ) : self . trigger = threading . Lock ( ) self . was_ended = False self . trigger . acquire ( ) self . trigger . acquire ( ) if not self . was_ended : callback ( self )
This get started as a thread, and waits for the data lock to be freed then advertise itself to the SelectableSelector using the callback