Skip to content

Commit 2daeb53

Browse files
committed
rename '__cxx_atomic_wait_poll_fn_impl' to '__atomic_compare_unequal_to'
1 parent f151e17 commit 2daeb53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/include/__atomic/atomic_sync.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ _LIBCPP_HIDE_FROM_ABI bool __cxx_nonatomic_compare_equal(_Tp const& __lhs, _Tp c
136136
}
137137

138138
template <class _Tp>
139-
struct __cxx_atomic_wait_poll_fn_impl {
139+
struct __atomic_compare_unequal_to {
140140
_Tp __val;
141141
_LIBCPP_HIDE_FROM_ABI bool operator()(_Tp& __current_val) const {
142142
return !std::__cxx_nonatomic_compare_equal(__current_val, __val);
@@ -146,7 +146,7 @@ struct __cxx_atomic_wait_poll_fn_impl {
146146
template <class _Atp, class _Tp>
147147
_LIBCPP_AVAILABILITY_SYNC _LIBCPP_HIDE_FROM_ABI void
148148
__cxx_atomic_wait(_Atp* __a, _Tp const __val, memory_order __order) {
149-
__cxx_atomic_wait_poll_fn_impl<_Tp> __poll_fn = {__val};
149+
__atomic_compare_unequal_to<_Tp> __poll_fn = {__val};
150150
std::__cxx_atomic_wait_unless(__a, __poll_fn, __order);
151151
}
152152

0 commit comments

Comments
 (0)