|
uvw
2.6.0
|
The Semaphore wrapper. More...
#include <thread.h>


Public Member Functions | |
| void | post () noexcept |
| Unlocks a semaphore. | |
| void | wait () noexcept |
| Locks a semaphore. | |
| bool | tryWait () noexcept |
| Tries to lock a semaphore. More... | |
Public Member Functions inherited from uvw::UnderlyingType< Semaphore, uv_sem_t > | |
| Loop & | loop () const noexcept |
| Gets the loop from which the resource was originated. More... | |
| const uv_sem_t * | raw () const noexcept |
| Gets the underlying raw data structure. More... | |
| uv_sem_t * | raw () noexcept |
| Gets the underlying raw data structure. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from uvw::UnderlyingType< Semaphore, uv_sem_t > | |
| static std::shared_ptr< Semaphore > | create (Args &&... args) |
| Creates a new resource of the given type. More... | |
The Semaphore wrapper.
To create a Semaphore through a Loop, arguments follow:
|
noexcept |
Tries to lock a semaphore.
1.8.17