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); } }