emilib
Public Member Functions | List of all members
emilib::ReadLock< MutexType > Class Template Reference

This is a drop-in replacement for C++14's std::shared_lock. More...

#include <read_write_mutex.hpp>

Public Member Functions

 ReadLock (MutexType &mut)
 
 ReadLock (MutexType &mut, std::defer_lock_t)
 Won't lock right away.
 
void lock ()
 Lock, unless already locked.
 
bool try_lock ()
 Does not block. Returns true iff the mutex is locked by this thread after the call.
 
void unlock ()
 unlock, unless already unlocked.
 

Detailed Description

template<typename MutexType>
class emilib::ReadLock< MutexType >

This is a drop-in replacement for C++14's std::shared_lock.


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