LLVM  4.0.0
Public Member Functions | List of all members
llvm::sys::SmartRWMutex< mt_only > Class Template Reference

SmartMutex - An R/W mutex with a compile time constant parameter that indicates whether this mutex should become a no-op when we're not running in multithreaded mode. More...

#include <RWMutex.h>

Inheritance diagram for llvm::sys::SmartRWMutex< mt_only >:
[legend]

Public Member Functions

 SmartRWMutex ()=default
 
bool lock_shared ()
 
bool unlock_shared ()
 
bool lock ()
 
bool unlock ()
 

Detailed Description

template<bool mt_only>
class llvm::sys::SmartRWMutex< mt_only >

SmartMutex - An R/W mutex with a compile time constant parameter that indicates whether this mutex should become a no-op when we're not running in multithreaded mode.

Definition at line 89 of file RWMutex.h.

Constructor & Destructor Documentation

template<bool mt_only>
llvm::sys::SmartRWMutex< mt_only >::SmartRWMutex ( )
explicitdefault

Member Function Documentation

template<bool mt_only>
bool llvm::sys::SmartRWMutex< mt_only >::lock ( )
inline

Definition at line 118 of file RWMutex.h.

template<bool mt_only>
bool llvm::sys::SmartRWMutex< mt_only >::lock_shared ( )
inline

Definition at line 97 of file RWMutex.h.

template<bool mt_only>
bool llvm::sys::SmartRWMutex< mt_only >::unlock ( )
inline

Definition at line 129 of file RWMutex.h.

template<bool mt_only>
bool llvm::sys::SmartRWMutex< mt_only >::unlock_shared ( )
inline

Definition at line 107 of file RWMutex.h.


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