Split: Expose name via CompThr's derivatives' ctors

This completes the functional work of splitting libspinscale off
from SMO. Spinscale shouldn't have any real dependencies on SMO
from here on out.
This commit is contained in:
2026-02-22 18:54:56 -04:00
parent 1c397dfeb5
commit aec3cbedf2
7 changed files with 21 additions and 16 deletions
+6 -4
View File
@@ -1,6 +1,7 @@
#include <config.h>
#include <iostream>
#include <opts.h>
#include <componentThread.h>
#include <spinscale/asynchronousContinuation.h>
#include <spinscale/asynchronousLoop.h>
#include <spinscale/callback.h>
@@ -19,24 +20,25 @@ Mind::Mind(void)
: sscl::PuppetApplication(
std::vector<std::shared_ptr<sscl::PuppetThread>>{
std::make_shared<MindThread>(
SmoThreadId::DIRECTOR,
SmoThreadId::DIRECTOR, getThreadName(SmoThreadId::DIRECTOR),
sscl::PuppetComponent::defaultPuppetMain, director,
&MindComponent::preJoltHook),
std::make_shared<MindThread>(
SmoThreadId::SIMULATOR,
SmoThreadId::SIMULATOR, getThreadName(SmoThreadId::SIMULATOR),
sscl::PuppetComponent::defaultPuppetMain, canvas,
&MindComponent::preJoltHook),
std::make_shared<MindThread>(
SmoThreadId::SUBCONSCIOUS,
getThreadName(SmoThreadId::SUBCONSCIOUS),
sscl::PuppetComponent::defaultPuppetMain, subconscious,
&MindComponent::preJoltHook),
std::make_shared<MindThread>(
SmoThreadId::BODY,
SmoThreadId::BODY, getThreadName(SmoThreadId::BODY),
sscl::PuppetComponent::defaultPuppetMain, body,
&MindComponent::preJoltHook)
#ifndef CONFIG_WORLD_USE_BODY_THREAD
, std::make_shared<MindThread>(
SmoThreadId::WORLD,
SmoThreadId::WORLD, getThreadName(SmoThreadId::WORLD),
sscl::PuppetComponent::defaultPuppetMain, world,
&MindComponent::preJoltHook)
#endif