feat(furvm): introduce executor

This commit is contained in:
2026-06-06 21:05:17 +02:00
parent 16b6b9549c
commit a869f71f3a
6 changed files with 145 additions and 5 deletions
+5 -2
View File
@@ -13,8 +13,10 @@ namespace furvm {
class context {
public:
using value_type = std::unique_ptr<mod>; /**< An alias to unique pointer of module. */
friend class executor;
public:
context() = default;
context();
~context() = default;
/**
@@ -92,7 +94,8 @@ public:
*/
constexpr size_t size() const { return m_modules.size(); }
private:
std::vector<std::unique_ptr<mod>> m_modules;
std::vector<std::unique_ptr<mod>> m_modules;
std::vector<std::shared_ptr<executor>> m_executors;
};
} // namespace furvm