#include "llvm/ExecutionEngine/Orc/ThreadSafeModule.h"
#include "gtest/gtest.h"
#include <atomic>
#include <future>
#include <thread>
usingnamespacellvm;
usingnamespacellvm::orc;
namespace {
TEST(ThreadSafeModuleTest, ContextWhollyOwnedByOneModule) { … }
TEST(ThreadSafeModuleTest, ContextOwnershipSharedByTwoModules) { … }
TEST(ThreadSafeModuleTest, ContextOwnershipSharedWithClient) { … }
TEST(ThreadSafeModuleTest, ThreadSafeModuleMoveAssignment) { … }
TEST(ThreadSafeModuleTest, BasicContextLockAPI) { … }
TEST(ThreadSafeModuleTest, ContextLockPreservesContext) { … }
TEST(ThreadSafeModuleTest, WithModuleDo) { … }
TEST(ThreadSafeModuleTest, WithModuleDoConst) { … }
TEST(ThreadSafeModuleTest, ConsumingModuleDo) { … }
}