From 145526308ade38227670b1f2dfcac169925ea317 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Wed, 8 Dec 2021 17:33:08 -0500 Subject: [PATCH] kernel/condition_variable: Increase tries count. Should help with timeout panics occurring, at least somewhat. --- src/system/kernel/condition_variable.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/condition_variable.cpp b/src/system/kernel/condition_variable.cpp index 631d155bdb..04cfc722e1 100644 --- a/src/system/kernel/condition_variable.cpp +++ b/src/system/kernel/condition_variable.cpp @@ -157,7 +157,7 @@ ConditionVariableEntry::_RemoveFromVariable() int32 tries = 0; while (atomic_pointer_get(&fVariable) != NULL) { tries++; - if ((tries % 10000) == 0) + if ((tries % 100000) == 0) panic("variable pointer was not unset for a long time!"); }