Skip to content

Commit 6b6f018

Browse files
committed
fallback
1 parent e5df955 commit 6b6f018

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
@@ -200,7 +200,7 @@ static void __libcpp_platform_wake_by_address(__cxx_atomic_contention_t const vo
200200
template <std::size_t _Size>
201201
static void __platform_wait_on_address(void const volatile* __ptr, void const* __val) {
202202
__libcpp_thread_poll_with_backoff(
203-
[=]() -> bool { return !std::memcmp(const_cast<const void*>(__ptr), __val, _Size); },
203+
[=]() -> bool { return std::memcmp(const_cast<const void*>(__ptr), __val, _Size) != 0; },
204204
__libcpp_timed_backoff_policy());
205205
}
206206

0 commit comments

Comments
 (0)