aboutsummaryrefslogtreecommitdiff
path: root/src/threading.cpp
diff options
context:
space:
mode:
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);
}
}