libycxx

class template

std::counting_semaphore

Scope
std

Synopsis

template<ptrdiff_t LeastMaxValue = 9223372036854775807L>
class counting_semaphore;

Member functions

NameDeclaration
counting_semaphoreconstructor · 2 overloadscounting_semaphore(const counting_semaphore& other) +1 more
~counting_semaphoredestructor~counting_semaphore()
operator=operatorcounting_semaphore& operator=(const counting_semaphore& other)
acquiremember functionvoid acquire()
releasemember functionvoid release(ptrdiff_t update)
try_acquiremember functionbool try_acquire()
try_acquire_formember function templatebool try_acquire_for(const chrono::duration<Rep, Period>& rel_time)
try_acquire_untilmember function templatebool try_acquire_until(const chrono::time_point<Clock, Duration>& abs_time)

Static member functions

NameDeclaration
maxstatic member functionptrdiff_t max()