|
uvw 3.1.0
|
The mutex wrapper. More...
#include <thread.h>


Public Member Functions | |
| void | lock () noexcept |
| Locks the mutex. | |
| bool | try_lock () noexcept |
| Tries to lock the mutex. | |
| void | unlock () noexcept |
| Unlocks the mutex. | |
Public Member Functions inherited from uvw::uv_type< uv_mutex_t > | |
| virtual int | init () |
| Initializes the handle. | |
| loop & | parent () const noexcept |
| Gets the loop from which the resource was originated. | |
| const uv_mutex_t * | raw () const noexcept |
| Gets the underlying raw data structure. | |
| uv_mutex_t * | raw () noexcept |
| Gets the underlying raw data structure. | |
The mutex wrapper.
To create a mutex through a loop, arguments follow:
|
noexcept |
Tries to lock the mutex.