LLVM
8.0.1
|
A pared-down imitation of std::unique_lock from C++11. More...
#include "llvm/Support/UniqueLock.h"
Public Member Functions | |
unique_lock ()=default | |
unique_lock (MutexT &m) | |
unique_lock (const unique_lock &)=delete | |
unique_lock & | operator= (const unique_lock &)=delete |
void | operator= (unique_lock &&o) |
~unique_lock () | |
void | lock () |
void | unlock () |
bool | owns_lock () |
A pared-down imitation of std::unique_lock from C++11.
Contrary to the name, it's really more of a wrapper for a lock. It may or may not have an associated mutex, which is guaranteed to be locked upon creation and unlocked after destruction. unique_lock can also unlock the mutex and re-lock it freely during its lifetime. Guard a section of code with a mutex.
Definition at line 29 of file UniqueLock.h.
|
default |
Referenced by llvm::unique_lock< MutexT >::unique_lock().
|
inlineexplicit |
Definition at line 35 of file UniqueLock.h.
References llvm::unique_lock< MutexT >::operator=(), and llvm::unique_lock< MutexT >::unique_lock().
|
delete |
|
inline |
Definition at line 48 of file UniqueLock.h.
References llvm::unique_lock< MutexT >::owns_lock().
|
inline |
Definition at line 50 of file UniqueLock.h.
References assert().
|
delete |
Referenced by llvm::unique_lock< MutexT >::unique_lock().
|
inline |
Definition at line 39 of file UniqueLock.h.
References llvm::unique_lock< MutexT >::owns_lock().
|
inline |
Definition at line 64 of file UniqueLock.h.
Referenced by llvm::unique_lock< MutexT >::operator=(), and llvm::unique_lock< MutexT >::~unique_lock().
|
inline |
Definition at line 57 of file UniqueLock.h.
References assert().
Referenced by llvm::Interpreter::callExternalFunction().