rust-lang/futures-rs

Deadlock detection for futures::lock::Mutex

Open

#2 133 ouverte le 22 avr. 2020

Voir sur GitHub
 (1 commentaire) (6 réactions) (0 assignés)Rust (552 forks)batch import
A-lockC-feature-requesthelp wanted

Métriques du dépôt

Stars
 (4 701 stars)
Métriques de merge PR
 (Merge moyen 22j 16h) (3 PRs mergées en 30 j)

Description

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

Guide contributeur