![]() |
![]()
| ![]() |
![]()
NAMEstd::counting_semaphore::try_acquire_for - std::counting_semaphore::try_acquire_for Synopsis template<class Rep, class Period>
Preconditions(none) Parametersrel_time - the minimum duration the function must wait for to fail Return valuetrue if it decremented the internal counter, otherwise false ExceptionsMay throw std::system_error or a timeout-related exception. NotesIn practice the function may take longer than rel_time to fail.
|