Function parking_lot_core::parking_lot::lock_bucket
source ยท fn lock_bucket(key: usize) -> &'static Bucket
Expand description
Locks the bucket for the given key and returns a reference to it. The returned bucket must be unlocked again in order to not cause deadlocks.