|
uvw 3.4.0
|
The semaphore wrapper. More...
#include <thread.h>


Public Member Functions | |
| void | post () noexcept |
| Unlocks a semaphore. | |
| void | wait () noexcept |
| Locks a semaphore. | |
| bool | try_wait () noexcept |
| Tries to lock a semaphore. | |
Public Member Functions inherited from uvw::uv_type< uv_sem_t > | |
| loop & | parent () const noexcept |
| Gets the loop from which the resource was originated. | |
| const uv_sem_t * | raw () const noexcept |
| Gets the underlying raw data structure. | |
| uv_sem_t * | raw () noexcept |
| Gets the underlying raw data structure. | |
The semaphore wrapper.
To create a semaphore through a loop, arguments follow:
|
noexcept |
Tries to lock a semaphore.