MCPcopy Create free account
hub / github.com/CodeSentryAI/lockbud / DeadlockDetector

Class DeadlockDetector

src/detector/lock/mod.rs:61–65  ·  view source on GitHub ↗

Detect doublelock and conflictlock.

Source from the content-addressed store, hash-verified

59/// Detect doublelock and conflictlock.
60pub struct DeadlockDetector<'tcx> {
61 tcx: TyCtxt<'tcx>,
62 typing_env: TypingEnv<'tcx>,
63 pub lockguard_relations: FxHashSet<(LockGuardId, LockGuardId)>,
64}
65
66impl<'tcx> DeadlockDetector<'tcx> {
67 pub fn new(tcx: TyCtxt<'tcx>, typing_env: TypingEnv<'tcx>) -> Self {
68 Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected