]> git.ipfire.org Git - thirdparty/ccache.git/commit
chore: Improve util::FileLock
authorJoel Rosdahl <joel@rosdahl.net>
Sun, 5 Oct 2025 17:29:36 +0000 (19:29 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 5 Oct 2025 19:03:46 +0000 (21:03 +0200)
commit0aa05d37ebcc6ac4919c9b2cdf96a09053dc4473
tree5dbfa59dda176f8d8ce3300bd1bd745182311b22
parentdf53a450654e3beba409f59888b9fa2617b44b97
chore: Improve util::FileLock

- Release current lock on move.
- Check for invalid file descriptor in acquire/release.
- Use UnlockFileEx on Windows for symmetry with LockFileEx.
- Added noexcept where applicable.
src/ccache/util/filelock.cpp
src/ccache/util/filelock.hpp