Home
last modified time | relevance | path

Searched refs:lock_idx (Results 1 – 2 of 2) sorted by relevance

/rocksdb-6.9/utilities/persistent_cache/
Dhash_table.h102 const uint32_t lock_idx = bucket_idx % nlocks_; in Insert() local
104 WriteLock _(&locks_[lock_idx]); in Insert()
117 const uint32_t lock_idx = bucket_idx % nlocks_; in Find() local
119 port::RWMutex& lock = locks_[lock_idx]; in Find()
138 const uint32_t lock_idx = bucket_idx % nlocks_; in Erase() local
140 WriteLock _(&locks_[lock_idx]); in Erase()
152 const uint32_t lock_idx = bucket_idx % nlocks_; in GetMutex() local
154 return &locks_[lock_idx]; in GetMutex()
159 const uint32_t lock_idx = i % nlocks_; in Clear() local
160 WriteLock _(&locks_[lock_idx]); in Clear()
Dhash_table_evictable.h113 const uint32_t lock_idx = i % hash_table::nlocks_; in Clear() local
114 WriteLock _(&hash_table::locks_[lock_idx]); in Clear()
115 auto& lru_list = lru_lists_[lock_idx]; in Clear()
153 const uint32_t lock_idx = bucket_idx % hash_table::nlocks_; in GetLRUList() local
154 return lru_lists_[lock_idx]; in GetLRUList()
159 const uint32_t lock_idx = bucket_idx % hash_table::nlocks_; in GetMutex() local
160 return hash_table::locks_[lock_idx]; in GetMutex()