|
LLVM
3.7.0
|
A pared-down imitation of std::unique_lock from C++11. More...
#include <UniqueLock.h>
Public Member Functions | |
| unique_lock () | |
| unique_lock (MutexT &m) | |
| 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 28 of file UniqueLock.h.
|
inline |
Definition at line 35 of file UniqueLock.h.
|
inlineexplicit |
Definition at line 36 of file UniqueLock.h.
|
inline |
Definition at line 47 of file UniqueLock.h.
References llvm::unique_lock< MutexT >::owns_lock().
|
inline |
Definition at line 49 of file UniqueLock.h.
|
inline |
Definition at line 38 of file UniqueLock.h.
References llvm::unique_lock< MutexT >::owns_lock().
|
inline |
Definition at line 63 of file UniqueLock.h.
Referenced by llvm::unique_lock< MutexT >::operator=(), and llvm::unique_lock< MutexT >::~unique_lock().
|
inline |
Definition at line 56 of file UniqueLock.h.
Referenced by llvm::Interpreter::callExternalFunction().
1.8.6