Browse Source

Revert change since it is not needed

gingerBill 1 year ago
parent
commit
21d1c0e5a4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/threading.cpp

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