Kagome
Polkadot Runtime Engine in C++17
|
#include <module.hpp>
Public Member Functions | |
void | set (std::shared_ptr< Module > module) |
Sets new cached value, scrapping previous if any. More... | |
std::optional< std::shared_ptr< Module > > | try_extract () |
Private Attributes | |
std::optional< std::shared_ptr< Module > > | module_ |
A wrapper for compiled module. Used when we update WAVM runtime in order to skip double compilation which takes significant time (see issue #1104). Currently it's shared through DI.
Definition at line 37 of file module.hpp.
|
inline |
Sets new cached value, scrapping previous if any.
module | New compiled module to store |
Definition at line 43 of file module.hpp.
|
inline |
Pops stored module (if any), clears cache in process.
Definition at line 51 of file module.hpp.
|
private |
Definition at line 58 of file module.hpp.