From f9aec8b6906599296417af5414b1c72a3cf53e73 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 22 Feb 2024 14:16:33 +1100 Subject: split the lua thread registry into its own files --- src/lua/include/lua_thread.hpp | 34 ---------------------------------- 1 file changed, 34 deletions(-) (limited to 'src/lua/include/lua_thread.hpp') diff --git a/src/lua/include/lua_thread.hpp b/src/lua/include/lua_thread.hpp index c12a0bfc..384de61d 100644 --- a/src/lua/include/lua_thread.hpp +++ b/src/lua/include/lua_thread.hpp @@ -10,9 +10,7 @@ #include #include "lua.hpp" -#include "lvgl.h" -#include "bridge.hpp" #include "service_locator.hpp" namespace lua { @@ -43,36 +41,4 @@ class LuaThread { lua_State* state_; }; -class Registry { - public: - static auto instance(system_fsm::ServiceLocator&) -> Registry&; - - auto uiThread() -> std::shared_ptr; - auto newThread() -> std::shared_ptr; - - auto AddPropertyModule( - const std::string&, - std::vector< - std::pair>>) - -> void; - - Registry(const Registry&) = delete; - Registry& operator=(const Registry&) = delete; - - private: - Registry(system_fsm::ServiceLocator&); - - system_fsm::ServiceLocator& services_; - std::unique_ptr bridge_; - - std::shared_ptr ui_thread_; - std::list> threads_; - - std::vector< - std::pair>>>> - modules_; -}; - } // namespace lua -- cgit v1.2.3