Constructors

Synopses

Declared in <util/fs.h>

Deleted default constructor; a FileLock must name a file.

FileLock() = delete;

Deleted copy constructor; a FileLock is not copyable.

FileLock(FileLock const& other) = delete;

Deleted move constructor; a FileLock is not movable.

FileLock(FileLock&& other) = delete;

Construct a lock object for the given file, without yet acquiring the lock.

explicit
FileLock(fs::path const& file);

Parameters

Name

Description

other

The lock that would be copied.

file

The path of the file to lock.

Created with MrDocs