rust-lang/futures-rs

Deadlock detection for futures::lock::Mutex

Open

#2.133 geöffnet am 22. Apr. 2020

Auf GitHub ansehen
 (1 Kommentar) (6 Reaktionen) (0 zugewiesene Personen)Rust (552 Forks)batch import
A-lockC-feature-requesthelp wanted

Repository-Metriken

Stars
 (4.701 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 22T 16h) (3 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide