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

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

#include <read_write_mutex.hpp>

Public Member Functions

 WriteLock (MutexType &mut)
 
 WriteLock (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::WriteLock< MutexType >

This is a drop-in replacement for C++11's std::unique_lock.


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