rust-lang/futures-rs

Deadlock detection for futures::lock::Mutex

Open

#2,133 创建于 2020年4月22日

在 GitHub 查看
 (1 评论) (6 反应) (0 负责人)Rust (4,701 star) (552 fork)batch import
A-lockC-feature-requesthelp wanted

描述

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

贡献者指南