From 29be57b8ef900997e38c66d84915a5bfd48e20da Mon Sep 17 00:00:00 2001 From: abushev Date: Sat, 15 Jun 2024 16:43:24 +0300 Subject: [PATCH] using sharable_lock for cache get size --- rtb/datacache/entity_cache.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtb/datacache/entity_cache.hpp b/rtb/datacache/entity_cache.hpp index 87fd979..897499f 100644 --- a/rtb/datacache/entity_cache.hpp +++ b/rtb/datacache/entity_cache.hpp @@ -272,7 +272,7 @@ class entity_cache } size_t get_size() const { - bip::scoped_lock guard(_named_mutex) ; + bip::sharable_lock guard(_named_mutex) ; return _container_ptr->size(); } private: