@@ -105,12 +105,12 @@ struct __libcpp_atomic_wait_backoff_impl {
105
105
// predicate (is the loaded value unequal to `old`?), the predicate function is
106
106
// specified as an argument. The loaded value is given as an in-out argument to
107
107
// the predicate. If the predicate function returns `true`,
108
- // `_cxx_atomic_wait_fn ` will return. If the predicate function returns
108
+ // `_cxx_atomic_wait_unless ` will return. If the predicate function returns
109
109
// `false`, it must set the argument to its current understanding of the atomic
110
110
// value. The predicate function must not return `false` spuriously.
111
111
template <class _Atp , class _Poll >
112
112
_LIBCPP_AVAILABILITY_SYNC _LIBCPP_HIDE_FROM_ABI void
113
- __cxx_atomic_wait_fn (_Atp* __a, _Poll&& __poll, memory_order __order) {
113
+ __cxx_atomic_wait_unless (_Atp* __a, _Poll&& __poll, memory_order __order) {
114
114
__libcpp_atomic_wait_poll_impl<_Atp, __decay_t <_Poll> > __poll_fn = {__a, __poll, __order};
115
115
__libcpp_atomic_wait_backoff_impl<_Atp, __decay_t <_Poll> > __backoff_fn = {__a, __poll, __order};
116
116
(void )std::__libcpp_thread_poll_with_backoff (__poll_fn, __backoff_fn);
@@ -123,7 +123,7 @@ _LIBCPP_HIDE_FROM_ABI void __cxx_atomic_notify_all(__cxx_atomic_impl<_Tp> const
123
123
template <class _Tp >
124
124
_LIBCPP_HIDE_FROM_ABI void __cxx_atomic_notify_one (__cxx_atomic_impl<_Tp> const volatile *) {}
125
125
template <class _Atp , class _Poll >
126
- _LIBCPP_HIDE_FROM_ABI void __cxx_atomic_wait_fn (_Atp* __a, _Poll&& __poll, memory_order __order) {
126
+ _LIBCPP_HIDE_FROM_ABI void __cxx_atomic_wait_unless (_Atp* __a, _Poll&& __poll, memory_order __order) {
127
127
__libcpp_atomic_wait_poll_impl<_Atp, __decay_t <_Poll> > __poll_fn = {__a, __poll, __order};
128
128
(void )std::__libcpp_thread_poll_with_backoff (__poll_fn, __spinning_backoff_policy ());
129
129
}
@@ -147,7 +147,7 @@ template <class _Atp, class _Tp>
147
147
_LIBCPP_AVAILABILITY_SYNC _LIBCPP_HIDE_FROM_ABI void
148
148
__cxx_atomic_wait (_Atp* __a, _Tp const __val, memory_order __order) {
149
149
__cxx_atomic_wait_poll_fn_impl<_Tp> __poll_fn = {__val};
150
- std::__cxx_atomic_wait_fn (__a, __poll_fn, __order);
150
+ std::__cxx_atomic_wait_unless (__a, __poll_fn, __order);
151
151
}
152
152
153
153
_LIBCPP_END_NAMESPACE_STD
0 commit comments