Skip to content

Commit 240a4fb

Browse files
committed
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
1 parent e2c84b8 commit 240a4fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

util/cache.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ class LRUCache {
171171
private:
172172
void LRU_Remove(LRUHandle* e);
173173
void LRU_Append(LRUHandle* list, LRUHandle* e);
174-
void Ref(LRUHandle* e);
175-
void Unref(LRUHandle* e);
174+
void Ref(LRUHandle* e) EXCLUSIVE_LOCKS_REQUIRED(mutex_);
175+
void Unref(LRUHandle* e) EXCLUSIVE_LOCKS_REQUIRED(mutex_);
176176
bool FinishErase(LRUHandle* e) EXCLUSIVE_LOCKS_REQUIRED(mutex_);
177177

178178
// Initialized before use.

0 commit comments

Comments
 (0)