Function parking_lot_core::parking_lot::lock_bucket_checked
source · fn lock_bucket_checked(key: &AtomicUsize) -> (usize, &'static Bucket)
Expand description
Locks the bucket for the given key and returns a reference to it. But checks that the key hasn’t been changed in the meantime due to a requeue. The returned bucket must be unlocked again in order to not cause deadlocks.