mirror of
https://github.com/bertptrs/tracing-mutex.git
synced 2025-12-25 20:50:32 +01:00
Document new functionality
This commit is contained in:
@@ -15,6 +15,14 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|||||||
`tracing_mutex::parkinglot` is now identical to `parking_lot`, and an example showing how to use
|
`tracing_mutex::parkinglot` is now identical to `parking_lot`, and an example showing how to use
|
||||||
it as a drop-in replacement was added.
|
it as a drop-in replacement was added.
|
||||||
|
|
||||||
|
- Introduced `experimental` feature, which will be used going forward to help evolve the API outside
|
||||||
|
the normal stability guarantees. APIs under this feature are not subject to semver or MSRV
|
||||||
|
guarantees.
|
||||||
|
|
||||||
|
- Added experimental api `tracing_mutex::util::reset_dependencies`, which can be used to reset the
|
||||||
|
ordering information of a specific mutex when you need to reorder them. This API is unsafe, as its
|
||||||
|
use invalidates any of the deadlock prevention guarantees made.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Reworked CI to better test continued support for the minimum supported Rust version
|
- Reworked CI to better test continued support for the minimum supported Rust version
|
||||||
|
|||||||
@@ -30,12 +30,17 @@
|
|||||||
//!
|
//!
|
||||||
//! - `backtraces`: Enables capturing backtraces of mutex dependencies, to make it easier to
|
//! - `backtraces`: Enables capturing backtraces of mutex dependencies, to make it easier to
|
||||||
//! determine what sequence of events would trigger a deadlock. This is enabled by default, but if
|
//! determine what sequence of events would trigger a deadlock. This is enabled by default, but if
|
||||||
//! the performance overhead is unaccceptable, it can be disabled by disabling default features.
|
//! the performance overhead is unacceptable, it can be disabled by disabling default features.
|
||||||
//!
|
//!
|
||||||
//! - `lockapi`: Enables the wrapper lock for [`lock_api`][lock_api] locks
|
//! - `lockapi`: Enables the wrapper lock for [`lock_api`][lock_api] locks
|
||||||
//!
|
//!
|
||||||
//! - `parkinglot`: Enables wrapper types for [`parking_lot`][parking_lot] mutexes
|
//! - `parkinglot`: Enables wrapper types for [`parking_lot`][parking_lot] mutexes
|
||||||
//!
|
//!
|
||||||
|
//! - `experimental`: Enables experimental features. Experimental features are intended to test new
|
||||||
|
//! APIs and play with new APIs before committing to them. As such, breaking changes may be
|
||||||
|
//! introduced in it between otherwise semver-compatible versions, and the MSRV does not apply to
|
||||||
|
//! experimental features.
|
||||||
|
//!
|
||||||
//! # Performance considerations
|
//! # Performance considerations
|
||||||
//!
|
//!
|
||||||
//! Tracing a mutex adds overhead to certain mutex operations in order to do the required
|
//! Tracing a mutex adds overhead to certain mutex operations in order to do the required
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
//! Utilities related to the internals of dependency tracking.
|
||||||
use crate::MutexId;
|
use crate::MutexId;
|
||||||
|
|
||||||
/// Reset the dependencies for the given entity.
|
/// Reset the dependencies for the given entity.
|
||||||
|
|||||||
Reference in New Issue
Block a user