Skip to content

Commit 060943a

Browse files
committed
fallback
1 parent 1b8d84d commit 060943a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libcxx/src/atomic.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ static void __platform_wake_by_address(void const volatile* __ptr, bool __notify
131131
template <std::size_t _Size>
132132
static void __platform_wait_on_address(void const volatile* __ptr, void const* __val) {
133133
__libcpp_thread_poll_with_backoff(
134-
[=]() -> bool { return !std::memcmp(const_cast<const void*>(__ptr), __val, _Size); },
134+
[=]() -> bool { return std::memcmp(const_cast<const void*>(__ptr), __val, _Size) != 0; },
135135
__libcpp_timed_backoff_policy());
136136
}
137137

0 commit comments

Comments
 (0)