Home
last modified time | relevance | path

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

/rocksdb-6.9/utilities/persistent_cache/
Dhash_table.h71 nlocks_(nlocks) {
76 assert(nlocks_);
84 locks_.reset(new port::RWMutex[nlocks_]);
86 mlock(locks_.get(), nlocks_ * sizeof(port::RWMutex));
102 const uint32_t lock_idx = bucket_idx % nlocks_; in Insert()
117 const uint32_t lock_idx = bucket_idx % nlocks_; in Find()
138 const uint32_t lock_idx = bucket_idx % nlocks_; in Erase()
152 const uint32_t lock_idx = bucket_idx % nlocks_; in GetMutex()
159 const uint32_t lock_idx = i % nlocks_; in Clear()
224 WriteLock _(&locks_[i % nlocks_]); in AssertEmptyBuckets()
[all …]
Dhash_table_evictable.h33 lru_lists_(new LRUList<T>[hash_table::nlocks_]) {
82 const size_t start_idx = random % hash_table::nlocks_;
86 for (size_t i = 0; !t && i < hash_table::nlocks_; ++i) {
87 const size_t idx = (start_idx + i) % hash_table::nlocks_;
113 const uint32_t lock_idx = i % hash_table::nlocks_; in Clear()
129 for (uint32_t i = 0; i < hash_table::nlocks_; ++i) { in AssertEmptyLRU()
153 const uint32_t lock_idx = bucket_idx % hash_table::nlocks_; in GetLRUList()
159 const uint32_t lock_idx = bucket_idx % hash_table::nlocks_; in GetMutex()