Lines Matching refs:ptrdiff_t
22 static constexpr ptrdiff_t max() noexcept;
24 constexpr explicit latch(ptrdiff_t __expected);
30 void count_down(ptrdiff_t __update = 1);
33 void arrive_and_wait(ptrdiff_t __update = 1);
36 ptrdiff_t __counter; // exposition only
67 __atomic_base<ptrdiff_t> __a_;
70 …static _LIBCPP_HIDE_FROM_ABI constexpr ptrdiff_t max() noexcept { return numeric_limits<ptrdiff_t>…
72 inline _LIBCPP_HIDE_FROM_ABI constexpr explicit latch(ptrdiff_t __expected) : __a_(__expected) {
75 "latch::latch(ptrdiff_t): latch cannot be "
79 "latch::latch(ptrdiff_t): latch cannot be "
87 inline _LIBCPP_AVAILABILITY_SYNC _LIBCPP_HIDE_FROM_ABI void count_down(ptrdiff_t __update = 1) {
103 …__a_, [this](ptrdiff_t& __value) -> bool { return try_wait_impl(__value); }, memory_order_acquire);
105 …inline _LIBCPP_AVAILABILITY_SYNC _LIBCPP_HIDE_FROM_ABI void arrive_and_wait(ptrdiff_t __update = 1…
114 …_LIBCPP_HIDE_FROM_ABI bool try_wait_impl(ptrdiff_t& __value) const noexcept { return __value == 0;…