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