LLVM 20.0.0git
|
SmartMutex - A 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/Mutex.h"
Public Member Functions | |
bool | lock () |
bool | unlock () |
bool | try_lock () |
SmartMutex - A 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.
|
inline |
Definition at line 33 of file Mutex.h.
References impl, and llvm::llvm_is_multithreaded().
Referenced by llvm::orc::MapperJITLinkMemoryManager::allocate().
|
inline |
Definition at line 58 of file Mutex.h.
References impl, and llvm::llvm_is_multithreaded().
|
inline |
Definition at line 45 of file Mutex.h.
References assert(), impl, and llvm::llvm_is_multithreaded().
Referenced by llvm::orc::MapperJITLinkMemoryManager::allocate().