rust-lang/futures-rs

Deadlock detection for futures::lock::Mutex

Open

#2133 aperta il 22 apr 2020

Vedi su GitHub
 (1 commento) (6 reazioni) (0 assegnatari)Rust (552 fork)batch import
A-lockC-feature-requesthelp wanted

Metriche repository

Star
 (4701 star)
Metriche merge PR
 (Merge medio 22g 16h) (3 PR mergiate in 30 g)

Descrizione

It would be really nice if Mutex had deadlock detection (including via a feature flag). Especially in an async context where it's hard to peer into the state of tasks, these can be exceptionally hard to debug.

parking_lot does this for its synchronous locks, though it requires you to trigger detection manually on another thread.

cc @ctiller

Guida contributor