LLVM 20.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 try_lock_shared ()
 
bool lock ()
 
bool unlock ()
 
bool try_lock ()
 

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

Member Function Documentation

◆ lock()

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

Definition at line 136 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 109 of file RWMutex.h.

References impl, and llvm::llvm_is_multithreaded().

◆ try_lock()

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

Definition at line 162 of file RWMutex.h.

References impl.

◆ try_lock_shared()

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

Definition at line 134 of file RWMutex.h.

References impl.

◆ unlock()

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

Definition at line 149 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 121 of file RWMutex.h.

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


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