Function parking_lot_core::deadlock::release_resource

source ·
pub unsafe fn release_resource(_key: usize)
Expand description

Release a resource identified by key in the deadlock detector. Noop if deadlock_detection feature isn’t enabled.

§Panics

Panics if the resource was already released or wasn’t acquired in this thread.

§Safety

Call before the resource is released