Advisory lock on a file, released when the object is destroyed.
Declared in <util/fs.h>
class FileLock;
| 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. |