From 7aa7649e980ff4b335b41eaea34a9a11820c3e2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Mon, 8 Aug 2022 22:25:46 +0200 Subject: Generation number of stored objects with caching --- src/storage.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/storage.h') diff --git a/src/storage.h b/src/storage.h index 0f7c3bf..ef335b8 100644 --- a/src/storage.h +++ b/src/storage.h @@ -164,6 +164,9 @@ struct PartialStorage::Priv optional copy(const typename S::Ref &, vector *) const; template optional copy(const ObjectT &, vector *) const; + + mutable mutex generationCacheLock {}; + mutable unordered_map generationCache {}; }; struct PartialRef::Priv -- cgit v1.2.3