aboutsummaryrefslogtreecommitdiff
path: root/src/threading.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-02-21 12:58:26 +0000
committergingerBill <bill@gingerbill.org>2024-02-21 12:58:26 +0000
commit21d1c0e5a41627cfc0bc65e00a13d40e7380c50d (patch)
treea8e82a9c4b55caacceefc754a2a8c59f664dcf7b /src/threading.cpp
parentd7b7804215e451d620894affedc57a42b5105f6b (diff)
Revert change since it is not needed
Diffstat (limited to 'src/threading.cpp')
-rw-r--r--src/threading.cpp2
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);
}
}