STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions
stapl::runtime::phtread_impl::read_write_mutex Class Reference

A read-write mutex based on pthread_rwlock_t. More...

Public Member Functions

 read_write_mutex (read_write_mutex const &)=delete
 
read_write_mutexoperator= (read_write_mutex const &)=delete
 
void lock (const read_lock_t) noexcept
 
void lock (const write_lock_t=write_lock) noexcept
 
bool try_lock (const read_lock_t) noexcept
 
bool try_lock (const write_lock_t=write_lock) noexcept
 
void unlock (void) noexcept
 

Detailed Description

A read-write mutex based on pthread_rwlock_t.

It implements the interface of std::mutex, enhanced to support read or write locking.

The default locking policy is write locking.


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