/netbsd-src/external/apache2/llvm/dist/libcxx/src/ |
H A D | barrier.cpp | 29 ptrdiff_t& __expected; member in __barrier_algorithm_base 33 __barrier_algorithm_base(ptrdiff_t& __expected) in __barrier_algorithm_base() argument 34 : __expected(__expected) in __barrier_algorithm_base() 36 size_t const __count = (__expected + 1) >> 1; in __barrier_algorithm_base() 44 size_t __current_expected = __expected, in __arrive() 45 __current = hash<thread::id>()(this_thread::get_id()) % ((__expected + 1) >> 1); in __arrive() 77 __barrier_algorithm_base * __construct_barrier_algorithm_base(ptrdiff_t& __expected) in __construct_barrier_algorithm_base() argument 79 return new __barrier_algorithm_base(__expected); in __construct_barrier_algorithm_base()
|
/netbsd-src/external/gpl3/gcc.old/dist/libstdc++-v3/include/bits/ |
H A D | atomic_base.h | 874 compare_exchange_weak(_Tp* __ptr, _Val<_Tp>& __expected, in _GLIBCXX_VISIBILITY() 878 return __atomic_compare_exchange(__ptr, std::__addressof(__expected), in _GLIBCXX_VISIBILITY() 885 compare_exchange_strong(_Tp* __ptr, _Val<_Tp>& __expected, in _GLIBCXX_VISIBILITY() 889 return __atomic_compare_exchange(__ptr, std::__addressof(__expected), in _GLIBCXX_VISIBILITY() 1072 compare_exchange_weak(_Fp& __expected, _Fp __desired, in _GLIBCXX_VISIBILITY() 1077 __expected, __desired, in _GLIBCXX_VISIBILITY() 1082 compare_exchange_weak(_Fp& __expected, _Fp __desired, in _GLIBCXX_VISIBILITY() 1087 __expected, __desired, in _GLIBCXX_VISIBILITY() 1092 compare_exchange_strong(_Fp& __expected, _Fp __desired, in _GLIBCXX_VISIBILITY() 1097 __expected, __desired, in _GLIBCXX_VISIBILITY() [all …]
|
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/bits/ |
H A D | atomic_base.h | 1006 compare_exchange_weak(_Tp* __ptr, _Val<_Tp>& __expected, in _GLIBCXX_VISIBILITY() 1012 return __atomic_compare_exchange(__ptr, std::__addressof(__expected), in _GLIBCXX_VISIBILITY() 1019 compare_exchange_strong(_Tp* __ptr, _Val<_Tp>& __expected, in _GLIBCXX_VISIBILITY() 1025 return __atomic_compare_exchange(__ptr, std::__addressof(__expected), in _GLIBCXX_VISIBILITY() 1235 compare_exchange_weak(_Fp& __expected, _Fp __desired, in _GLIBCXX_VISIBILITY() 1240 __expected, __desired, in _GLIBCXX_VISIBILITY() 1245 compare_exchange_weak(_Fp& __expected, _Fp __desired, in _GLIBCXX_VISIBILITY() 1250 __expected, __desired, in _GLIBCXX_VISIBILITY() 1255 compare_exchange_strong(_Fp& __expected, _Fp __desired, in _GLIBCXX_VISIBILITY() 1260 __expected, __desired, in _GLIBCXX_VISIBILITY() [all …]
|
H A D | shared_ptr_atomic.h | 565 compare_exchange_strong(value_type& __expected, value_type __desired, in _GLIBCXX_VISIBILITY() 570 if (_M_ptr == __expected._M_ptr in _GLIBCXX_VISIBILITY() 571 && __pi == __expected._M_refcount._M_pi) in _GLIBCXX_VISIBILITY() 578 _Tp __sink = std::move(__expected); in _GLIBCXX_VISIBILITY() 579 __expected._M_ptr = _M_ptr; in _GLIBCXX_VISIBILITY() 580 __expected._M_refcount._M_pi = _S_add_ref(__pi); in _GLIBCXX_VISIBILITY() 668 compare_exchange_strong(shared_ptr<_Tp>& __expected, in _GLIBCXX_VISIBILITY() 672 return _M_impl.compare_exchange_strong(__expected, __desired, __o, __o2); in _GLIBCXX_VISIBILITY() 676 compare_exchange_strong(value_type& __expected, value_type __desired, in _GLIBCXX_VISIBILITY() 691 return compare_exchange_strong(__expected, std::move(__desired), in _GLIBCXX_VISIBILITY() [all …]
|
/netbsd-src/external/apache2/llvm/dist/libcxx/include/ |
H A D | barrier | 99 __barrier_algorithm_base* __construct_barrier_algorithm_base(ptrdiff_t& __expected); 111 ptrdiff_t __expected; 126 __barrier_base(ptrdiff_t __expected, _CompletionF __completion = _CompletionF()) 127 : __expected(__expected), __base(__construct_barrier_algorithm_base(this->__expected), 139 __expected += __expected_adjustment.load(memory_order_relaxed); 180 __atomic_base<ptrdiff_t> __expected; 192 __barrier_base(ptrdiff_t __expected, _CompletionF __completion = _CompletionF()) 193 … : __expected(__expected), __arrived(__expected), __completion(move(__completion)), __phase(false) 201 auto const new_expected = __expected.load(memory_order_relaxed); 218 __expected.fetch_sub(1, memory_order_relaxed);
|
H A D | latch | 24 constexpr explicit latch(ptrdiff_t __expected); 72 constexpr explicit latch(ptrdiff_t __expected) : __a(__expected) { }
|
H A D | atomic | 810 volatile __cxx_atomic_base_impl<_Tp>* __a, _Tp* __expected, _Tp __value, 812 return __atomic_compare_exchange(&__a->__a_value, __expected, &__value, 821 __cxx_atomic_base_impl<_Tp>* __a, _Tp* __expected, _Tp __value, memory_order __success, 823 return __atomic_compare_exchange(&__a->__a_value, __expected, &__value, 832 volatile __cxx_atomic_base_impl<_Tp>* __a, _Tp* __expected, _Tp __value, 834 return __atomic_compare_exchange(&__a->__a_value, __expected, &__value, 843 __cxx_atomic_base_impl<_Tp>* __a, _Tp* __expected, _Tp __value, memory_order __success, 845 return __atomic_compare_exchange(&__a->__a_value, __expected, &__value, 1022 …ompare_exchange_strong(__cxx_atomic_base_impl<_Tp> volatile* __a, _Tp* __expected, _Tp __value, me… 1023 …return __c11_atomic_compare_exchange_strong(&__a->__a_value, __expected, __value, static_cast<__me… [all …]
|
/netbsd-src/external/apache2/llvm/dist/libcxx/src/include/ |
H A D | atomic_support.h | 96 _ValueType* __expected, _ValueType __after, 100 return __atomic_compare_exchange_n(__val, __expected, __after, true, 159 _ValueType* __expected, _ValueType __after, 162 if (*__val == *__expected) { 166 *__expected = *__val;
|
/netbsd-src/external/gpl3/gcc/dist/libstdc++-v3/include/std/ |
H A D | expected | 142 namespace __expected 157 && (!__expected::__is_unexpected<_Er>) 165 static_assert( __expected::__can_be_unexpected<_Er> ); 244 namespace __expected 312 static_assert( ! __expected::__is_unexpected<remove_cv_t<_Tp>> ); 313 static_assert( __expected::__can_be_unexpected<_Er> ); 425 && (!__expected::__is_unexpected<remove_cvref_t<_Up>>) 537 && (!__expected::__is_unexpected<remove_cvref_t<_Up>>) 839 __expected::__reinit(__builtin_addressof(_M_val), 852 __expected::__reinit(__builtin_addressof(_M_unex), [all …]
|
H A D | latch | 53 constexpr explicit latch(ptrdiff_t __expected) noexcept 54 : _M_a(__expected) { }
|
H A D | barrier | 156 __tree_barrier(ptrdiff_t __expected, _CompletionF __completion) 157 : _M_expected(__expected), _M_expected_adjustment(0),
|