Searched refs:lock_idx (Results 1 – 2 of 2) sorted by relevance
102 const uint32_t lock_idx = bucket_idx % nlocks_; in Insert() local104 WriteLock _(&locks_[lock_idx]); in Insert()117 const uint32_t lock_idx = bucket_idx % nlocks_; in Find() local119 port::RWMutex& lock = locks_[lock_idx]; in Find()138 const uint32_t lock_idx = bucket_idx % nlocks_; in Erase() local140 WriteLock _(&locks_[lock_idx]); in Erase()152 const uint32_t lock_idx = bucket_idx % nlocks_; in GetMutex() local154 return &locks_[lock_idx]; in GetMutex()159 const uint32_t lock_idx = i % nlocks_; in Clear() local160 WriteLock _(&locks_[lock_idx]); in Clear()
113 const uint32_t lock_idx = i % hash_table::nlocks_; in Clear() local114 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() local154 return lru_lists_[lock_idx]; in GetLRUList()159 const uint32_t lock_idx = bucket_idx % hash_table::nlocks_; in GetMutex() local160 return hash_table::locks_[lock_idx]; in GetMutex()