From 21d1c0e5a41627cfc0bc65e00a13d40e7380c50d Mon Sep 17 00:00:00 2001 From: gingerBill Date: Wed, 21 Feb 2024 12:58:26 +0000 Subject: [PATCH] Revert change since it is not needed --- src/threading.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/threading.cpp b/src/threading.cpp index 4f7f5b12b..725b58c89 100644 --- a/src/threading.cpp +++ b/src/threading.cpp @@ -112,7 +112,7 @@ struct Wait_Signal { }; gb_internal void wait_signal_until_available(Wait_Signal *ws) { - while (ws->futex.load() == 0) { + if (ws->futex.load() == 0) { futex_wait(&ws->futex, 1); } }