rust-lang/futures-rs

Deadlock detection for futures::lock::Mutex

Aberta

#2.133 aberto em 22 de abr. de 2020

 (1 comentário) (6 reações) (0 responsável)Rust (552 forks)batch import
A-lockC-feature-requesthelp wanted

Métricas do repositório

Stars
 (4.701 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

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

Guia do colaborador