libcoro
1.0
Coroutine support library for C++20
coro
semaphore
acquire
get
operator co_await
release
semaphore
try_acquire
◆
acquire()
coro::future
<void> coro::semaphore::acquire
(
)
inline
acquire the semaphore
Decrease the counter.
Return values
resolved
future is resolved, if counter was above zero
pending
future is pending, if counter was (and is) zero. The future can be set to resolved by
release()
Definition at line
32
of file
semaphore.h
.
Here is the caller graph for this function:
Generated on Fri Aug 2 2024 15:51:50 for libcoro by
1.9.1