LLVM: llvm::orc::ThreadSafeContext Class Reference (original) (raw)
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](ThreadSafeModule%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| ThreadSafeContext ()=default | |
| Construct a null context. | |
| ThreadSafeContext (std::unique_ptr< LLVMContext > NewCtx) | |
| Construct a ThreadSafeContext from the given LLVMContext. | |
| template | |
| decltype(auto) | withContextDo (Func &&F) |
| template | |
| decltype(auto) | withContextDo (Func &&F) const |
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 29 of file ThreadSafeModule.h.
| llvm::orc::ThreadSafeContext::ThreadSafeContext ( ) | default |
|---|
Construct a null context.
◆ ThreadSafeContext() [2/2]
| llvm::orc::ThreadSafeContext::ThreadSafeContext ( std::unique_ptr< LLVMContext > NewCtx) | inline |
|---|
◆ withContextDo() [1/2]
template
| decltype(auto) llvm::orc::ThreadSafeContext::withContextDo ( Func && F) | inline |
|---|
◆ withContextDo() [2/2]
template
| decltype(auto) llvm::orc::ThreadSafeContext::withContextDo ( Func && F) const | inline |
|---|
The documentation for this class was generated from the following file:
- include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h