mirror of
https://github.com/NixOS/nix.git
synced 2025-11-16 23:42:43 +01: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:
parent
95845d92f7
commit
6af40f488a
3 changed files with 3 additions and 3 deletions
|
|
@ -106,7 +106,7 @@ public:
|
|||
* Acquire read access to the inner value. When using
|
||||
* `std::shared_mutex`, this will use a shared lock.
|
||||
*/
|
||||
ReadLock read() const { return ReadLock(const_cast<SyncBase *>(this)); }
|
||||
ReadLock readLock() const { return ReadLock(const_cast<SyncBase *>(this)); }
|
||||
};
|
||||
|
||||
template<class T>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue