rust-lang/futures-rs

Deadlock detection for futures::lock::Mutex

開放

#2,133 建立於 2020年4月22日

 (1 則留言) (6 個反應) (0 位負責人)Rust (552 個分叉)batch import
A-lockC-feature-requesthelp wanted

倉庫指標

星標
 (4,701 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南