b.l._w32c_ReadLock(_w32c_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 _w32c_FileLock:

Method unlock Undocumented
Method _open Undocumented

Inherited from _OSLock (via _w32c_FileLock):

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