Lines Matching defs:lock
138 self._index_dir, "lock"),
719 self.lock()
762 # index, the index lock must be
865 # A lock can't be held while the index directory is being
867 # NFS. As such, attempt to get the lock first, then
871 self.lock()
992 def lock(self, blocking=False):
998 to block until the lock can be obtained or to raise an
1002 # Attempt to obtain a file lock.
1003 self.__lockfile.lock(blocking=blocking)
1006 # If a lock was requested, and the only
1012 return self.lock(blocking=blocking)