Function panda_sys::qemu_lockcnt_dec_if_lock [−][src]
pub unsafe extern "C" fn qemu_lockcnt_dec_if_lock(
lockcnt: *mut QemuLockCnt
) -> bool
Expand description
qemu_lockcnt_dec_if_lock: possibly decrement a QemuLockCnt’s counter and lock it. @lockcnt: the lockcnt to operate on
If the count is 1, decrement the count to zero, lock the mutex and return true. Otherwise, return false.