arthur/utils.py
def reader_release(self):
        """Release the lock after reading"""

        self._readers_mutex.acquire()

        self._readers -= 1
        if self._readers == 0:
            self._access_mutex.release()

        self._readers_mutex.release()
def reader_release(self):
        """Release the lock after reading"""

        self._readers_mutex.acquire()

        self._readers -= 1
        if self._readers == 0:
            self._access_mutex.release()

        self._readers_mutex.release()
def reader_release ( self ) : self . _readers_mutex . acquire ( ) self . _readers -= 1 if self . _readers == 0 : self . _access_mutex . release ( ) self . _readers_mutex . release ( )
Release the lock after reading
Release the lock after reading