b.l._ctypes_ReadLock(_ctypes_FileLock) : class documentation

Part of bzrlib.lock View In Hierarchy

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

Inherited from _ctypes_FileLock:

Method unlock Undocumented
Method _open Undocumented

Inherited from _OSLock (via _ctypes_FileLock):

Method _clear_f Clear the self.f attribute cleanly.
def __init__(self, filename):
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.