fsbridge::FileLock

Advisory lock on a file, released when the object is destroyed.

Synopsis

Declared in <util/fs.h>

class FileLock;

Member Functions

NameDescription
FileLock [constructor]Constructors
~FileLock [destructor]Release the lock, if held, and close the underlying file handle.
GetReason Describe why the most recent TryLock() failed.
TryLock Attempt to acquire the lock without blocking.