|
LLVM
8.0.1
|
An LLVMContext together with an associated mutex that can be used to lock the context to prevent concurrent access by other threads. More...
#include "llvm/ExecutionEngine/Orc/ThreadSafeModule.h"
Classes | |
| class | Lock |
Public Member Functions | |
| ThreadSafeContext ()=default | |
| Construct a null context. More... | |
| ThreadSafeContext (std::unique_ptr< LLVMContext > NewCtx) | |
| Construct a ThreadSafeContext from the given LLVMContext. More... | |
| LLVMContext * | getContext () |
| Returns a pointer to the LLVMContext that was used to construct this instance, or null if the instance was default constructed. More... | |
| const LLVMContext * | getContext () const |
| Returns a pointer to the LLVMContext that was used to construct this instance, or null if the instance was default constructed. More... | |
| Lock | getLock () |
An LLVMContext together with an associated mutex that can be used to lock the context to prevent concurrent access by other threads.
Definition at line 30 of file ThreadSafeModule.h.
|
default |
Construct a null context.
Referenced by llvm::orc::ThreadSafeContext::Lock::Lock().
|
inline |
Construct a ThreadSafeContext from the given LLVMContext.
Definition at line 59 of file ThreadSafeModule.h.
References assert().
|
inline |
Returns a pointer to the LLVMContext that was used to construct this instance, or null if the instance was default constructed.
Definition at line 67 of file ThreadSafeModule.h.
Referenced by llvm::orc::cloneToNewContext().
|
inline |
Returns a pointer to the LLVMContext that was used to construct this instance, or null if the instance was default constructed.
Definition at line 71 of file ThreadSafeModule.h.
|
inline |
Definition at line 73 of file ThreadSafeModule.h.
References assert(), and llvm::Lock.
1.8.13