NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io, #62 most downloaded on crates.io
Wrappers to create fully-featured Mutex and RwLock types. Compatible with no_std.
Latest stable
0.5.0
Last release 1 months ago
21 Oct 2026
Ships fairly regularly
a new release about every 5 months
Some releases are documented
notes for 10 of 26 stable releases
2 versions withdrawn
withdrawn after publishing
8 years old
28 releases · first in 2018
Drag across the ruler to compare, or tap a release to open it.
Signficantly improved Mutex and RwLock performance under contention by deferring waking up parked threads until after the lock is released.
Mutex and RwLock performance under contention bylock_api raw locks. RawMutex::GuardGuardMarker; rwlocks have separate SharedGuard, ExclusiveGuard,UpgradableGuard types. Unlock operations consume this state, whilehardware-lock-elision feature. (#533)UnparkResult::be_fair. (#533)lock_api/nightly feature. (#533)lock_api const_new methods and the redundantparking_lot const_* constructor functions; the corresponding newRwLock with a dedicated reader-biasedRecursiveRwLock type. The RawRwLockRecursive and RawRwLockRecursiveTimedlock_api. (#533)Once::new_completed for constructing a Once in the completed state. (#520)Once::{is_completed, wait, wait_force} and the correspondingOnceState query methods. (#533)into_inner_with_raw to lock_api's Mutex, RwLock, and ReentrantMutex. (#524)RawCondvar, RawCondvarTimed, and the generic Condvar wrapper tolock_api, and implemented parking_lot::Condvar using them. Custom rawfalse or 0. parking_lot::Condvar still guarantees noSend and Sync bounds of lock guards in lock_api. (#533)RawMutex::is_locked and RawRwLock::{is_locked, is_locked_exclusive} required methods. (#533)MappedRwLockReadGuard::try_map_or_else to try_map_or_err. (#533)lock_api. (#533)unlocked and unlocked_fair operations now abort if re-locking panics.with_upgraded operations abort if raw upgrading or downgrading panics,parking_lot_core are now guaranteed to neverunlock_upgradable_fair not forcing a fair handoff. (#533)Condvar waits reporting a timeout without rechecking the predicate. (#533)RwLock deadlock tracking to avoid false positives and missedparking_lot_core/deadlock_detection is enabled. (#533)Once deadlock tracking and made overlapping wait cycles report as aYour coding agent can read these notes before it upgrades. Set up the MCP server →
Fixed use of doc_cfg when building on docs.rs.
doc_cfg when building on docs.rs.#[track_caller] where locking implementations could feasibly need to panictry_map_or_err to various mutex guards (#480)autocfg dependency (#474)into_arc(_fair) methods (#472)Remove warnings due to new lint on unknown cfgs
Release parking_lot 0.12.2, parking_lot_core 0.9.10, lock_api 0.4.12
Release parking_lot 0.12.2, parking_lot_core 0.9.10, lock_api 0.4.12
Nothing published for this version
Nothing published for this version
Fixed ReentrantMutexGuard::try_map signature
ReentrantMutexGuard::try_map signature (#355)Fixed unsound Sync/Send impls for ArcMutexGuard.
Sync/Send impls for ArcMutexGuard. (#349)ArcMutexGuard::into_arc. (#350)Nothing published for this version
Nothing published for this version
Nothing published for this version
- Update for latest nightly.
Added [Raw]ReentrantMutex::is_owned.
[Raw]ReentrantMutex::is_owned. (#280)Nothing published for this version
Add data_ptr method to lock types to allow unsafely accessing the inner data without a guard.
data_ptr method to lock types to allow unsafely accessing the inner data
without a guard. (#247)Nothing published for this version
Nothing published for this version
Deprecate unsound MappedRwLockWriteGuard::downgrade
MappedRwLockWriteGuard::downgrade (#198)Nothing published for this version
Nothing published for this version
Use NonZeroUsize in GetThreadId::nonzero_thread_id
unsafe and document some internal methods (#148)Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.