b.l._fcntl_ReadLock(_fcntl_FileLock) : class documentation

Part of bzrlib.lock View In Hierarchy

No class docstring
Method __init__ Undocumented
Method unlock Undocumented
Method temporary_write_lock Try to grab a write lock on the file.

Inherited from _fcntl_FileLock:

Method _unlock Undocumented

Inherited from _OSLock (via _fcntl_FileLock):

Method _open Undocumented
Method _clear_f Clear the self.f attribute cleanly.
def __init__(self, filename):
def unlock(self):
def temporary_write_lock(self):
Try to grab a write lock on the file.

On platforms that support it, this will upgrade to a write lock without unlocking the file. Otherwise, this will release the read lock, and try to acquire a write lock.

ReturnsA token which can be used to switch back to a read lock.
API Documentation for Bazaar, generated by pydoctor at 2019-12-13 00:41:47.