Lines Matching refs:need_locks

370 in_order_locks(ErtsProcLocks in_use, ErtsProcLocks need_locks)  in in_order_locks()  argument
373 ErtsProcLocks busy = in_use & need_locks; in in_order_locks()
379 return need_locks & (lowest_busy - 1); in in_order_locks()
395 ErtsProcLocks need_locks, in wait_for_locks() argument
405 wtr->uflgs = need_locks; in wait_for_locks()
481 ErtsProcLocks need_locks = locks; in erts_proc_lock_failed() local
491 while (need_locks != 0) { in erts_proc_lock_failed()
494 can_grab = in_order_locks(olflgs, need_locks); in erts_proc_lock_failed()
501 wait_for_locks(p, pixlck, locks, need_locks, olflgs); in erts_proc_lock_failed()
523 need_locks &= ~can_grab; in erts_proc_lock_failed()
830 ErtsProcLocks need_locks; in erts_pid2proc_opt() local
850 need_locks = pid_need_locks; in erts_pid2proc_opt()
859 need_locks &= ~c_p_have_locks; in erts_pid2proc_opt()
860 if (!need_locks) { in erts_pid2proc_opt()
874 else if (!need_locks) { in erts_pid2proc_opt()
883 lcnt_locks = need_locks; in erts_pid2proc_opt()
885 erts_lcnt_proc_lock(&proc->lock, need_locks); in erts_pid2proc_opt()
892 busy = erts_proc_lc_trylock_force_busy(proc, need_locks); in erts_pid2proc_opt()
898 busy = (int) erts_proc_raw_trylock__(proc, need_locks); in erts_pid2proc_opt()
901 erts_proc_lc_trylock(proc, need_locks, !busy, __FILE__,__LINE__); in erts_pid2proc_opt()
905 erts_proc_lock_op_debug(proc, need_locks, 1); in erts_pid2proc_opt()
911 erts_lcnt_proc_trylock(&proc->lock, need_locks, in erts_pid2proc_opt()
959 need_locks); in erts_pid2proc_opt()
968 if (need_locks in erts_pid2proc_opt()
976 erts_proc_unlock(proc, need_locks); in erts_pid2proc_opt()