Module parking_lot_core::deadlock[][src]

[Experimental] Deadlock detection

Enabled via the deadlock_detection feature flag.

Functions

acquire_resource

Acquire a resource identified by key in the deadlock detector Noop if deadlock_detection feature isn't enabled. Note: Call after the resource is acquired

check_deadlock

Returns all deadlocks detected since the last call. Each cycle consist of a vector of DeadlockedThread.

release_resource

Release a resource identified by key in the deadlock detector. Noop if deadlock_detection feature isn't enabled. Note: Call before the resource is released