From 240a4fb95d5b843826081807019cd405aa654e2b Mon Sep 17 00:00:00 2001 From: fanquake Date: Fri, 30 May 2025 16:51:49 +0100 Subject: [PATCH] Squashed 'src/leveldb/' changes from 113db4962b..aba469ad6a aba469ad6a Merge bitcoin-core/leveldb-subtree#54: Fix clang thread-safety-pointer warnings 7daf4ed575 Fix clang thread-safety-pointer warnings git-subtree-dir: src/leveldb git-subtree-split: aba469ad6a808da8381edf83a99e5ece18958b31 --- util/cache.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/cache.cc b/util/cache.cc index 12de306cad2..2d4433fcc68 100644 --- a/util/cache.cc +++ b/util/cache.cc @@ -171,8 +171,8 @@ class LRUCache { private: void LRU_Remove(LRUHandle* e); void LRU_Append(LRUHandle* list, LRUHandle* e); - void Ref(LRUHandle* e); - void Unref(LRUHandle* e); + void Ref(LRUHandle* e) EXCLUSIVE_LOCKS_REQUIRED(mutex_); + void Unref(LRUHandle* e) EXCLUSIVE_LOCKS_REQUIRED(mutex_); bool FinishErase(LRUHandle* e) EXCLUSIVE_LOCKS_REQUIRED(mutex_); // Initialized before use.