Lines Matching refs:ptrdiff_t
18 template<ptrdiff_t least_max_value = implementation-defined>
22 static constexpr ptrdiff_t max() noexcept;
24 constexpr explicit counting_semaphore(ptrdiff_t desired);
30 void release(ptrdiff_t update = 1);
39 ptrdiff_t counter; // exposition only
83 # define _LIBCPP_SEMAPHORE_MAX (numeric_limits<ptrdiff_t>::max())
86 __atomic_base<ptrdiff_t> __a_;
89 …_LIBCPP_HIDE_FROM_ABI constexpr explicit __atomic_semaphore_base(ptrdiff_t __count) : __a_(__count…
90 _LIBCPP_AVAILABILITY_SYNC _LIBCPP_HIDE_FROM_ABI void release(ptrdiff_t __update = 1) {
100 __a_, [this](ptrdiff_t& __old) { return __try_acquire_impl(__old); }, memory_order_relaxed);
116 _LIBCPP_AVAILABILITY_SYNC _LIBCPP_HIDE_FROM_ABI bool __try_acquire_impl(ptrdiff_t& __old) {
126 template <ptrdiff_t __least_max_value = _LIBCPP_SEMAPHORE_MAX>
133 static constexpr ptrdiff_t max() noexcept { return __least_max_value; }
135 …_LIBCPP_HIDE_FROM_ABI constexpr explicit counting_semaphore(ptrdiff_t __count) : __semaphore_(__co…
138 "counting_semaphore::counting_semaphore(ptrdiff_t): counting_semaphore cannot be "
142 "counting_semaphore::counting_semaphore(ptrdiff_t): counting_semaphore cannot be "
150 _LIBCPP_AVAILABILITY_SYNC _LIBCPP_HIDE_FROM_ABI void release(ptrdiff_t __update = 1) {