Searched refs:nlocks_ (Results 1 – 2 of 2) sorted by relevance
71 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 …]
33 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()