8 #include <WAVM/Runtime/Runtime.h> 9 #include <boost/assert.hpp> 16 WAVM::Runtime::GCPointer<WAVM::Runtime::Compartment> compartment)
23 : impl_{std::make_unique<CompartmentWrapperImpl>(WAVM::Runtime::GCPointer{
24 WAVM::Runtime::createCompartment(std::move(name))})} {}
28 WAVM::Runtime::tryCollectCompartment(std::move(
impl_->compartment_)));
32 return impl_->compartment_;
WAVM::Runtime::GCPointer< WAVM::Runtime::Compartment > compartment_
CompartmentWrapperImpl(WAVM::Runtime::GCPointer< WAVM::Runtime::Compartment > compartment)
CompartmentWrapper(std::string &&name)
WAVM::Runtime::Compartment * getCompartment() const
std::shared_ptr< CompartmentWrapperImpl > impl_