[all-commits] [llvm/llvm-project] 588228: [clang][deps] Use lock_guard instead of unique_lock
Jan Svoboda via All-commits
all-commits at lists.llvm.org
Thu Dec 9 01:43:44 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 58822837cd53cdbe9c1b878c705b288f17a52f98
https://github.com/llvm/llvm-project/commit/58822837cd53cdbe9c1b878c705b288f17a52f98
Author: Jan Svoboda <jan_svoboda at apple.com>
Date: 2021-12-09 (Thu, 09 Dec 2021)
Changed paths:
M clang/lib/Tooling/DependencyScanning/DependencyScanningFilesystem.cpp
Log Message:
-----------
[clang][deps] Use lock_guard instead of unique_lock
This patch changes uses of `std::unique_lock` to `std::lock_guard`.
The `std::unique_lock` template provides some advanced capabilities (deferred locking, time-constrained locking attempts, etc.) we don't use in the caching filesystem. Plain `std::lock_guard` will do here.
Reviewed By: dexonsmith
Differential Revision: https://reviews.llvm.org/D115332
More information about the All-commits
mailing list