LLVM 22.0.0git
|
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"
Public Member Functions | |
ThreadSafeContext ()=default | |
Construct a null context. | |
ThreadSafeContext (std::unique_ptr< LLVMContext > NewCtx) | |
Construct a ThreadSafeContext from the given LLVMContext. | |
template<typename Func> | |
decltype(auto) | withContextDo (Func &&F) |
template<typename Func> | |
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.
|
default |
Construct a null context.
|
inline |
Construct a ThreadSafeContext from the given LLVMContext.
Definition at line 43 of file ThreadSafeModule.h.
References assert(), and llvm::move().
|
inline |
Definition at line 49 of file ThreadSafeModule.h.
References F.
Referenced by llvm::orc::deserializeModule().
|
inline |
Definition at line 57 of file ThreadSafeModule.h.
References F.