mirror of
https://github.com/NixOS/nix.git
synced 2025-11-16 07:22:43 +01:00
Merge pull request #13932 from NixOS/move-pathInfoCache
Reduce false sharing between pathInfoCache and Store
This commit is contained in:
commit
9c186c35fa
7 changed files with 37 additions and 63 deletions
|
|
@ -18,6 +18,9 @@ private:
|
|||
std::shared_ptr<T> p;
|
||||
|
||||
public:
|
||||
|
||||
using element_type = T;
|
||||
|
||||
explicit ref(const std::shared_ptr<T> & p)
|
||||
: p(p)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -36,6 +36,8 @@ private:
|
|||
|
||||
public:
|
||||
|
||||
using element_type = T;
|
||||
|
||||
SyncBase() {}
|
||||
|
||||
SyncBase(const T & data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue