Function panda_sys::qemu_lockcnt_dec_and_lock[][src]

pub unsafe extern "C" fn qemu_lockcnt_dec_and_lock(
    lockcnt: *mut QemuLockCnt
) -> bool
Expand description

qemu_lockcnt_dec_and_lock: decrement a QemuLockCnt’s counter and possibly lock it. @lockcnt: the lockcnt to operate on

Decrement lockcnt’s count. If the new count is zero, lock the mutex and return true. Otherwise, return false.