LLVM
8.0.1
|
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 | |
SmartMutex (bool rec=true) | |
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.
|
inlineexplicit |
|
inline |
Definition at line 100 of file Mutex.h.
Referenced by llvm::MutexGuard::MutexGuard(), and llvm::sys::SmartScopedLock< mt_only >::SmartScopedLock().
|
inline |
|
inline |
Definition at line 113 of file Mutex.h.
Referenced by llvm::MutexGuard::~MutexGuard(), and llvm::sys::SmartScopedLock< mt_only >::~SmartScopedLock().