File tree 1 file changed +13
-13
lines changed 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change 27
27
28
28
_LIBCPP_BEGIN_NAMESPACE_STD
29
29
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
+
30
43
#ifndef _LIBCPP_HAS_NO_THREADS
31
44
32
45
_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*);
43
56
_LIBCPP_AVAILABILITY_SYNC _LIBCPP_EXPORTED_FROM_ABI void
44
57
__libcpp_atomic_wait (__cxx_atomic_contention_t const volatile *, __cxx_contention_t );
45
58
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
-
59
59
template <class _Atp , class _Poll >
60
60
struct __libcpp_atomic_wait_backoff_impl {
61
61
_Atp* __a_;
You can’t perform that action at this time.
0 commit comments