LLVM  10.0.0svn
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 "llvm/Support/RWMutex.h"

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

Public Member Functions

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 94 of file RWMutex.h.

Member Function Documentation

◆ lock()

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

Definition at line 135 of file RWMutex.h.

◆ lock_shared()

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

Definition at line 110 of file RWMutex.h.

◆ unlock()

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

Definition at line 148 of file RWMutex.h.

◆ unlock_shared()

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

Definition at line 122 of file RWMutex.h.


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