This commit is contained in:
Daniel Lemire committed 2025-02-05 14:34:57 -05:00
1 parent fcf67504d0
commit 0b317a34da
1 file changed
+5 -1
+5 -1
View File
@@ -243,7 +243,11 @@ void MainThreadInterface::DispatchMessages() {
bool expected = false;
// compare_exchange_strong returns true if the value was successfully changed
// from false to true.
if (dispatching_messages_.compare_exchange_strong(expected, true, std::memory_order_acquire, std::memory_order_relaxed)) {
if (dispatching_messages_.compare_exchange_strong(
expected,
true,
std::memory_order_acquire,
std::memory_order_relaxed)) {
bool had_messages = false;
do {
if (dispatching_message_queue_.empty()) {