Skip to content

Commit e7ba6a9

Browse files
committed
Fix clang thread-safety warnings
1 parent ac69108 commit e7ba6a9

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
@@ -172,8 +172,8 @@ class LRUCache {
172172
private:
173173
void LRU_Remove(LRUHandle* e);
174174
void LRU_Append(LRUHandle* list, LRUHandle* e);
175-
void Ref(LRUHandle* e);
176-
void Unref(LRUHandle* e);
175+
void Ref(LRUHandle* e) EXCLUSIVE_LOCKS_REQUIRED(mutex_);
176+
void Unref(LRUHandle* e) EXCLUSIVE_LOCKS_REQUIRED(mutex_);
177177
bool FinishErase(LRUHandle* e) EXCLUSIVE_LOCKS_REQUIRED(mutex_);
178178

179179
// Initialized before use.

0 commit comments

Comments
 (0)