Fix remaining references to TracingMutex

This commit is contained in:
2023-10-06 08:59:21 +02:00
parent 43df59ac1c
commit fd75fc453b

View File

@@ -56,10 +56,10 @@ introduce a cyclic dependency between your locks, the operation panics instead.
immediately notice the cyclic dependency rather than be eventually surprised by it in production. immediately notice the cyclic dependency rather than be eventually surprised by it in production.
Mutex tracing is efficient, but it is not completely overhead-free. If you cannot spare the Mutex tracing is efficient, but it is not completely overhead-free. If you cannot spare the
performance penalty in your production environment, this library also offers debug-only tracing. performance penalty in your production environment, this library also offers debug-only tracing. The
`DebugMutex`, also found in the `stdsync` module, is a type alias that evaluates to `TracingMutex` type aliases in `tracing_mutex::stdsync` correspond to tracing primitives from
when debug assertions are enabled, and to `Mutex` when they are not. Similar helper types are `tracing_mutex::stdsync::tracing` when debug assertions are enabled, and to primitives from
available for other synchronization primitives. `std::sync::Mutex` when they are not. A similar structure exists for other
The minimum supported Rust version is 1.70. Increasing this is not considered a breaking change, but The minimum supported Rust version is 1.70. Increasing this is not considered a breaking change, but
will be avoided within semver-compatible releases if possible. will be avoided within semver-compatible releases if possible.
@@ -68,6 +68,7 @@ will be avoided within semver-compatible releases if possible.
- Dependency-tracking wrappers for all locking primitives - Dependency-tracking wrappers for all locking primitives
- Optional opt-out for release mode code - Optional opt-out for release mode code
- Optional backtrace capture to aid with reproducing cyclic mutex chains
- Support for primitives from: - Support for primitives from:
- `std::sync` - `std::sync`
- `parking_lot` - `parking_lot`
@@ -76,7 +77,6 @@ will be avoided within semver-compatible releases if possible.
## Future improvements ## Future improvements
- Improve performance in lock tracing - Improve performance in lock tracing
- Optional logging to make debugging easier
- Better and configurable error handling when detecting cyclic dependencies - Better and configurable error handling when detecting cyclic dependencies
- Support for other locking libraries - Support for other locking libraries
- Support for async locking libraries - Support for async locking libraries