class ThreadSafeContext
Declaration
class ThreadSafeContext { /* full declaration omitted */ };
Description
An LLVMContext together with an associated mutex that can be used to lock the context to prevent concurrent access by other threads.
Declared at: llvm/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h:29
Member Variables
- private std::shared_ptr<State> S
Method Overview
- public ThreadSafeContext()
- public ThreadSafeContext(std::unique_ptr<LLVMContext> NewCtx)
- public llvm::LLVMContext * getContext()
- public const llvm::LLVMContext * getContext() const
- public llvm::orc::ThreadSafeContext::Lock getLock() const
Methods
¶ThreadSafeContext()
ThreadSafeContext()
Description
Construct a null context.
Declared at: llvm/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h:50
¶ThreadSafeContext(
std::unique_ptr<LLVMContext> NewCtx)
ThreadSafeContext(
std::unique_ptr<LLVMContext> NewCtx)
Description
Construct a ThreadSafeContext from the given LLVMContext.
Declared at: llvm/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h:53
Parameters
- std::unique_ptr<LLVMContext> NewCtx
¶llvm::LLVMContext* getContext()
llvm::LLVMContext* getContext()
Description
Returns a pointer to the LLVMContext that was used to construct this instance, or null if the instance was default constructed.
Declared at: llvm/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h:61
¶const llvm::LLVMContext* getContext() const
const llvm::LLVMContext* getContext() const
Description
Returns a pointer to the LLVMContext that was used to construct this instance, or null if the instance was default constructed.
Declared at: llvm/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h:65
¶llvm::orc::ThreadSafeContext::Lock getLock() const
llvm::orc::ThreadSafeContext::Lock getLock() const
Declared at: llvm/include/llvm/ExecutionEngine/Orc/ThreadSafeModule.h:67