|
◆ get()
long coro::semaphore::get |
( |
| ) |
|
|
inline |
Retrieve counter.
- Return values
-
>0 | semaphore is opened |
=0 | semaphore is closed, acquire will block |
<0 | semaphore is closed, and there are awaiting coroutine, the absolute value of the return value contains count of awaiting coroutine |
Definition at line 79 of file semaphore.h.
|