|
uvw
2.0.0
|
#include <thread.hpp>


Public Member Functions | |
| void | rdLock () noexcept |
| Locks a read-write lock object for reading. | |
| bool | tryRdLock () noexcept |
| Tries to lock a read-write lock object for reading. More... | |
| void | rdUnlock () noexcept |
| Unlocks a read-write lock object previously locked for reading. | |
| void | wrLock () noexcept |
| Locks a read-write lock object for writing. | |
| bool | tryWrLock () noexcept |
| Tries to lock a read-write lock object for writing. More... | |
| void | wrUnlock () noexcept |
| Unlocks a read-write lock object previously locked for writing. | |
Public Member Functions inherited from uvw::UnderlyingType< RWLock, uv_rwlock_t > | |
| Loop & | loop () const noexcept |
| Gets the loop from which the resource was originated. More... | |
| const uv_rwlock_t * | raw () const noexcept |
| Gets the underlying raw data structure. More... | |
| uv_rwlock_t * | raw () noexcept |
| Gets the underlying raw data structure. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from uvw::UnderlyingType< RWLock, uv_rwlock_t > | |
| static std::shared_ptr< RWLock > | create (Args &&... args) |
| Creates a new resource of the given type. More... | |
The RWLock wrapper.
Definition at line 255 of file thread.hpp.
|
inlinenoexcept |
Tries to lock a read-write lock object for reading.
Definition at line 278 of file thread.hpp.
|
inlinenoexcept |
Tries to lock a read-write lock object for writing.
Definition at line 300 of file thread.hpp.
1.8.13