uvw 2.12.1
|
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. | |
Public Member Functions inherited from uvw::UnderlyingType< Semaphore, uv_sem_t > | |
Loop & | loop () const noexcept |
Gets the loop from which the resource was originated. | |
const uv_sem_t * | raw () const noexcept |
Gets the underlying raw data structure. |
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. |
The Semaphore wrapper.
To create a Semaphore through a Loop, arguments follow:
|
noexcept |
Tries to lock a semaphore.