This is an archive of the discontinued LLVM Phabricator instance.

[clang][deps] Use lock_guard instead of unique_lock
ClosedPublic

Authored by jansvoboda11 on Dec 8 2021, 4:57 AM.

Details

Summary

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.

Diff Detail

Event Timeline

jansvoboda11 requested review of this revision.Dec 8 2021, 4:57 AM
jansvoboda11 created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptDec 8 2021, 4:57 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Dec 8 2021, 3:29 PM
This revision was automatically updated to reflect the committed changes.