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. | |
![]() | |
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. | |
uv_sem_t * | raw () noexcept |
Gets the underlying raw data structure. | |
Additional Inherited Members | |
![]() | |
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.