Acquire the striped lock guarding the given id (RAII).
| 61 | |
| 62 | //! Acquire the striped lock guarding the given id (RAII). |
| 63 | [[nodiscard]] std::unique_lock<std::mutex> lock_for(diskann_id_t id) { |
| 64 | return std::unique_lock<std::mutex>(lock_pool_[id & kLockMask]); |
| 65 | } |
| 66 | |
| 67 | float alpha_{DiskAnnEntity::kDefaultAlpha}; |
| 68 | bool saturate_graph_{true}; |
nothing calls this directly
no outgoing calls
no test coverage detected