std::counting_semaphore<LeastMaxValue>::acquire
From cppreference.com
< cpp | thread | counting semaphore
void acquire(); |
(since C++20) | |
Atomically decrements the internal counter by 1 if it is greater than 0; otherwise blocks until it is greater than 0 and can successfully decrement the internal counter.
Preconditions
(none)
Parameters
(none)
Exceptions
May throw std::system_error.