LLVM 19.0.0git
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 91 of file RWMutex.h.

Member Function Documentation

◆ lock()

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

Definition at line 126 of file RWMutex.h.

References assert(), impl, and llvm::llvm_is_multithreaded().

◆ lock_shared()

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

Definition at line 101 of file RWMutex.h.

References impl, and llvm::llvm_is_multithreaded().

◆ unlock()

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

Definition at line 139 of file RWMutex.h.

References assert(), impl, and llvm::llvm_is_multithreaded().

◆ unlock_shared()

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

Definition at line 113 of file RWMutex.h.

References assert(), impl, and llvm::llvm_is_multithreaded().


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