diff options
| author | gingerBill <bill@gingerbill.org> | 2024-02-21 12:58:26 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-02-21 12:58:26 +0000 |
| commit | 21d1c0e5a41627cfc0bc65e00a13d40e7380c50d (patch) | |
| tree | a8e82a9c4b55caacceefc754a2a8c59f664dcf7b /src/threading.cpp | |
| parent | d7b7804215e451d620894affedc57a42b5105f6b (diff) | |
Revert change since it is not needed
Diffstat (limited to 'src/threading.cpp')
| -rw-r--r-- | src/threading.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } |