1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 12:41:15 +02:00

Rename SyncBase::read() -> readLock()

Make it explicit so it's clear what it's about when I and other
contributors read its call sites.
This commit is contained in:
Robert Hensing 2024-07-27 01:38:18 +02:00
parent 95845d92f7
commit 6af40f488a
3 changed files with 3 additions and 3 deletions

View file

@ -97,7 +97,7 @@ std::optional<struct stat> PosixSourceAccessor::cachedLstat(const CanonPath & pa
Path absPath = makeAbsPath(path).string();
{
auto cache(_cache.read());
auto cache(_cache.readLock());
auto i = cache->find(absPath);
if (i != cache->end()) return i->second;
}