From 8011fe12bc140ccf985a00f35dde1efbd9682b90 Mon Sep 17 00:00:00 2001 From: Hayodea Hekol Date: Thu, 19 Feb 2026 19:20:21 -0400 Subject: [PATCH] mindThread: remove parent ref; might remove class entirely --- smocore/include/mindThread.h | 13 +++---------- smocore/mind.cpp | 10 +++++----- 2 files changed, 8 insertions(+), 15 deletions(-) diff --git a/smocore/include/mindThread.h b/smocore/include/mindThread.h index dd889c7..63f9436 100644 --- a/smocore/include/mindThread.h +++ b/smocore/include/mindThread.h @@ -12,19 +12,12 @@ class MindThread : public sscl::PuppetThread { public: - MindThread(sscl::ThreadId _id, Mind& parent) - : sscl::PuppetThread(_id), - parent(parent) - { - } - - Mind& getParent() const { return parent; } + MindThread(sscl::ThreadId _id) + : sscl::PuppetThread(_id) + {} protected: void handleException() override; - -public: - Mind& parent; }; } // namespace smo diff --git a/smocore/mind.cpp b/smocore/mind.cpp index 4e3c54f..e236b8f 100644 --- a/smocore/mind.cpp +++ b/smocore/mind.cpp @@ -17,12 +17,12 @@ namespace smo { Mind::Mind(void) : sscl::PuppetApplication( std::vector>{ - std::make_shared(SmoThreadId::DIRECTOR, *this), - std::make_shared(SmoThreadId::SIMULATOR, *this), - std::make_shared(SmoThreadId::SUBCONSCIOUS, *this), - std::make_shared(SmoThreadId::BODY, *this) + std::make_shared(SmoThreadId::DIRECTOR), + std::make_shared(SmoThreadId::SIMULATOR), + std::make_shared(SmoThreadId::SUBCONSCIOUS), + std::make_shared(SmoThreadId::BODY) #ifndef CONFIG_WORLD_USE_BODY_THREAD - , std::make_shared(SmoThreadId::WORLD, *this) + , std::make_shared(SmoThreadId::WORLD) #endif } ),