mirror of
https://github.com/bertptrs/tracing-mutex.git
synced 2025-12-25 20:50:32 +01:00
Update documentation
This commit is contained in:
@@ -9,6 +9,7 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|||||||
### Breaking
|
### Breaking
|
||||||
|
|
||||||
- Update [`parking_lot`][parking_lot] dependency to `0.12`.
|
- Update [`parking_lot`][parking_lot] dependency to `0.12`.
|
||||||
|
- Restructured the crate to reduce typename verbosity. For details, see: #25.
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
|||||||
@@ -42,9 +42,9 @@ Replacements for the synchronization primitives in `std::sync` can be found in t
|
|||||||
Support for other synchronization primitives is planned.
|
Support for other synchronization primitives is planned.
|
||||||
|
|
||||||
```rust
|
```rust
|
||||||
use tracing_mutex::stdsync::TracingMutex;
|
use tracing_mutex::stdsync::Mutex;
|
||||||
|
|
||||||
let some_mutex = TracingMutex::new(42);
|
let some_mutex = Mutex::new(42);
|
||||||
*some_mutex.lock().unwrap() += 1;
|
*some_mutex.lock().unwrap() += 1;
|
||||||
println!("{:?}", some_mutex);
|
println!("{:?}", some_mutex);
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user