(self)
unblocks the current thread allowing it to continue to run
unblocks the current thread allowing it to continue to run
unblocks the current thread allowing it to continue to run
def unblock(self):
        """unblocks the current thread allowing it to continue to run"""
        assert self._is_blocked 
        assert self.id != thread.get_ident()    # only someone else should unblock us
        
        self._block_lock.release()
def unblock ( self ) : assert self . _is_blocked assert self . id != thread . get_ident ( ) # only someone else should unblock us self . _block_lock . release ( )