std::counting_semaphore<LeastMaxValue>::max
提供: cppreference.com
< cpp | thread | counting semaphore
constexpr std::ptrdiff_t max() noexcept; |
(C++20以上) | |
内部カウンタの可能な最大値を返します。 これは LeastMaxValue
より大きいまたは等しいです。 特殊化 binary_semaphore
の場合、 LeastMaxValue
は 1 と等しいです。
[編集] 戻り値
std::ptrdiff_t としての、内部カウンタの可能な最大値。