uvw 2.12.1
|
#include <thread.h>
Public Member Functions | |
void | lock () noexcept |
Locks the mutex. | |
bool | tryLock () noexcept |
Tries to lock the mutex. | |
void | unlock () noexcept |
Unlocks the mutex. | |
Public Member Functions inherited from uvw::UnderlyingType< Mutex, uv_mutex_t > | |
Loop & | loop () const noexcept |
Gets the loop from which the resource was originated. | |
const uv_mutex_t * | raw () const noexcept |
Gets the underlying raw data structure. |
Additional Inherited Members | |
Static Public Member Functions inherited from uvw::UnderlyingType< Mutex, uv_mutex_t > | |
static std::shared_ptr< Mutex > | create (Args &&...args) |
Creates a new resource of the given type. |
The Mutex wrapper.
To create a Mutex through a Loop, arguments follow:
|
noexcept |
Tries to lock the mutex.