Fast RTPS  Version 2.14.1
Fast RTPS
Loading...
Searching...
No Matches
shared_mutex< shared_mutex_type::PTHREAD_RWLOCK_PREFER_READER_NP > Class Reference

#include <shared_mutex.hpp>

Inheritance diagram for shared_mutex< shared_mutex_type::PTHREAD_RWLOCK_PREFER_READER_NP >:

Public Member Functions

void lock ()
 
void unlock_shared ()
 
- Public Member Functions inherited from shared_mutex_base
 shared_mutex_base ()
 
 ~shared_mutex_base ()
 
 shared_mutex_base (const shared_mutex_base &)=delete
 
shared_mutex_baseoperator= (const shared_mutex_base &)=delete
 
bool try_lock ()
 
void unlock ()
 
void lock_shared ()
 
bool try_lock_shared ()
 

Additional Inherited Members

- Protected Types inherited from shared_mutex_base
typedef std::mutex mutex_t
 
typedef std::condition_variable cond_t
 
typedef unsigned count_t
 
- Protected Attributes inherited from shared_mutex_base
mutex_t mut_
 
cond_t gate1_
 
count_t state_
 
- Static Protected Attributes inherited from shared_mutex_base
static const count_t write_entered_ = 1U << (sizeof(count_t) * CHAR_BIT - 1)
 
static const count_t n_readers_ = ~write_entered_
 

Member Function Documentation

◆ lock()

void lock ( )
inline

◆ unlock_shared()

void unlock_shared ( )
inline

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