Skip to content

Commit e212e69

Browse files
committed
CI
1 parent 99c242a commit e212e69

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

libcxx/include/__atomic/atomic_sync.h

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,19 @@
2727

2828
_LIBCPP_BEGIN_NAMESPACE_STD
2929

30+
template <class _Atp, class _Poll>
31+
struct __libcpp_atomic_wait_poll_impl {
32+
_Atp* __a_;
33+
_Poll __poll_;
34+
memory_order __order_;
35+
36+
_LIBCPP_AVAILABILITY_SYNC
37+
_LIBCPP_HIDE_FROM_ABI bool operator()() const {
38+
auto __current_val = std::__cxx_atomic_load(__a_, __order_);
39+
return __poll_(__current_val);
40+
}
41+
};
42+
3043
#ifndef _LIBCPP_HAS_NO_THREADS
3144

3245
_LIBCPP_AVAILABILITY_SYNC _LIBCPP_EXPORTED_FROM_ABI void __cxx_atomic_notify_one(void const volatile*);
@@ -43,19 +56,6 @@ __libcpp_atomic_monitor(__cxx_atomic_contention_t const volatile*);
4356
_LIBCPP_AVAILABILITY_SYNC _LIBCPP_EXPORTED_FROM_ABI void
4457
__libcpp_atomic_wait(__cxx_atomic_contention_t const volatile*, __cxx_contention_t);
4558

46-
template <class _Atp, class _Poll>
47-
struct __libcpp_atomic_wait_poll_impl {
48-
_Atp* __a_;
49-
_Poll __poll_;
50-
memory_order __order_;
51-
52-
_LIBCPP_AVAILABILITY_SYNC
53-
_LIBCPP_HIDE_FROM_ABI bool operator()() const {
54-
auto __current_val = std::__cxx_atomic_load(__a_, __order_);
55-
return __poll_(__current_val);
56-
}
57-
};
58-
5959
template <class _Atp, class _Poll>
6060
struct __libcpp_atomic_wait_backoff_impl {
6161
_Atp* __a_;

0 commit comments

Comments
 (0)