Lines Matching refs:attempt_of_4
713 int attempt_of_4) { in WaitForSuspendBarrier() argument
719 attempt_of_4 == 0 ? thread_suspend_timeout_ns_ : thread_suspend_timeout_ns_ / 4; in WaitForSuspendBarrier()
720 if (attempt_of_4 != 1 && getpriority(PRIO_PROCESS, 0 /* this thread */) > 0) { in WaitForSuspendBarrier()
724 if (attempt_of_4 == 3) { in WaitForSuspendBarrier()
730 bool collect_state = (t != 0 && (attempt_of_4 == 0 || attempt_of_4 == 4)); in WaitForSuspendBarrier()
914 for (int attempt_of_4 = 1; attempt_of_4 <= 4; ++attempt_of_4) { in SuspendAllInternal() local
915 auto result = WaitForSuspendBarrier(&pending_threads, tid, attempt_of_4); in SuspendAllInternal()
920 if (attempt_of_4 == 3) { in SuspendAllInternal()
934 } else if (attempt_of_4 == 4) { in SuspendAllInternal()
1050 int attempt_of_4) { in SuspendThread() argument
1121 failure_info = WaitForSuspendBarrier(&wrapped_barrier.barrier_, tid, attempt_of_4); in SuspendThread()
1127 if (attempt_of_4 > 0 && attempt_of_4 < 4) { in SuspendThread()
1226 int attempt_of_4) { in SuspendThreadByThreadId() argument
1244 bool success = SuspendThread(self, thread, reason, old_self_state, __func__, attempt_of_4); in SuspendThreadByThreadId()