uvw  2.0.0
Public Member Functions | List of all members
uvw::RWLock Class Referencefinal

The RWLock wrapper. More...

#include <thread.hpp>

Inheritance diagram for uvw::RWLock:
Inheritance graph
[legend]
Collaboration diagram for uvw::RWLock:
Collaboration graph
[legend]

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 >
Looploop () 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< RWLockcreate (Args &&... args)
 Creates a new resource of the given type. More...
 

Detailed Description

The RWLock wrapper.

Definition at line 255 of file thread.hpp.

Member Function Documentation

◆ tryRdLock()

bool uvw::RWLock::tryRdLock ( )
inlinenoexcept

Tries to lock a read-write lock object for reading.

Returns
True in case of success, false otherwise.

Definition at line 278 of file thread.hpp.

◆ tryWrLock()

bool uvw::RWLock::tryWrLock ( )
inlinenoexcept

Tries to lock a read-write lock object for writing.

Returns
True in case of success, false otherwise.

Definition at line 300 of file thread.hpp.


The documentation for this class was generated from the following file: