class SmartMutex
Declaration
template <bool mt_only>
class SmartMutex { /* full declaration omitted */ };
Description
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.
Declared at: llvm/include/llvm/Support/Mutex.h:28
Templates
- bool mt_only
Method Overview
Methods
¶bool lock()
bool lock()
Declared at: llvm/include/llvm/Support/Mutex.h:33
¶bool try_lock()
bool try_lock()
Declared at: llvm/include/llvm/Support/Mutex.h:60
¶bool unlock()
bool unlock()
Declared at: llvm/include/llvm/Support/Mutex.h:46