Lines Matching defs:lock
53 is called when the lock operation wants to write
54 implementation specific text into the lock file.
58 the lock string created by set_lockstr. The dictionary
60 the lock is non-blocking and fails.
62 failure_exc - If a non-blocking lock acquisition fails,
94 def lock(self, blocking=True):
97 return an exception, instead of blocking, if the lock
118 # Attempt an initial open of the lock file.
141 # Attempt to lock the file.
149 # If the lock failed (because it is likely contended),
150 # then extract the information about the lock acquirer
160 # Store information about the lock acquirer and write it.
181 # waiting for the lock file, it is simply
190 # an exception, drop the lock. Do not catch
192 # releasing the lock.
214 errstr = "Unable to lock file"