summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2023-02-02 14:43:17 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2023-02-02 14:43:17 +0100
commitc3793be11bd76e003a1c929f746058e95b77f68e (patch)
tree68367da45295bb925226866233d2fd2739148333 /src
parent4d5724b6d71f5251f8945056f278b3142f66f1b2 (diff)
downloadjustbuild-c3793be11bd76e003a1c929f746058e95b77f68e.tar.gz
file_locking: fix comment describing the name of the lock file
As opposed the earlier ideas, the implemented behaviour is that the file name of the lock is given explicitly. Fix comments accordingly.
Diffstat (limited to 'src')
-rw-r--r--src/utils/cpp/file_locking.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utils/cpp/file_locking.hpp b/src/utils/cpp/file_locking.hpp
index a92b874a..c9635d69 100644
--- a/src/utils/cpp/file_locking.hpp
+++ b/src/utils/cpp/file_locking.hpp
@@ -24,7 +24,6 @@
/* \brief Thread- and process-safe file locking mechanism for paths.
* User guarantees write access in the parent directory of the path given, as
* the lock will be placed there and missing tree directories will be created.
- * Lock path and name conventions: a/b.c, a/b/, a/b => a/b.lock; / => /.lock;
*/
class LockFile {
public:
@@ -41,7 +40,7 @@ class LockFile {
auto operator=(LockFile const&) = delete;
auto operator=(LockFile&& other) noexcept -> LockFile&;
- /// \brief Tries to acquire a lock file in the given directory path.
+ /// \brief Tries to acquire a lock file with the given name.
/// Missing directories will be created if write permission exists.
/// Returns the lock file object on success, nullopt on failure.
[[nodiscard]] static auto Acquire(std::filesystem::path const& fspath,