Fix fields_wait_signal futex.

This commit is contained in:
rick-masters
2024-03-24 16:28:55 +00:00
parent cab53e12b7
commit 6d4f30de1a
4 changed files with 8 additions and 1 deletions

View File

@@ -113,7 +113,7 @@ struct Wait_Signal {
gb_internal void wait_signal_until_available(Wait_Signal *ws) {
if (ws->futex.load() == 0) {
futex_wait(&ws->futex, 1);
futex_wait(&ws->futex, 0);
}
}