LLVM API Documentation
#include <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.
llvm::sys::SmartMutex< mt_only >::SmartMutex | ( | bool | rec = true | ) | [inline, explicit] |
bool llvm::sys::SmartMutex< mt_only >::lock | ( | ) | [inline] |
Definition at line 97 of file Mutex.h.
Referenced by llvm::MutexGuard::MutexGuard().
bool llvm::sys::SmartMutex< mt_only >::try_lock | ( | ) | [inline] |
bool llvm::sys::SmartMutex< mt_only >::unlock | ( | ) | [inline] |
Definition at line 110 of file Mutex.h.
Referenced by llvm::MutexGuard::~MutexGuard().