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

Synopsis

Declared in <util/fs.h>

class FileLock;

Member Functions

Name

Description

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.

Created with MrDocs