mindThread: remove parent ref; might remove class entirely
This commit is contained in:
@@ -12,19 +12,12 @@ class MindThread
|
|||||||
: public sscl::PuppetThread
|
: public sscl::PuppetThread
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
MindThread(sscl::ThreadId _id, Mind& parent)
|
MindThread(sscl::ThreadId _id)
|
||||||
: sscl::PuppetThread(_id),
|
: sscl::PuppetThread(_id)
|
||||||
parent(parent)
|
{}
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
Mind& getParent() const { return parent; }
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void handleException() override;
|
void handleException() override;
|
||||||
|
|
||||||
public:
|
|
||||||
Mind& parent;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace smo
|
} // namespace smo
|
||||||
|
|||||||
+5
-5
@@ -17,12 +17,12 @@ namespace smo {
|
|||||||
Mind::Mind(void)
|
Mind::Mind(void)
|
||||||
: sscl::PuppetApplication(
|
: sscl::PuppetApplication(
|
||||||
std::vector<std::shared_ptr<sscl::PuppetThread>>{
|
std::vector<std::shared_ptr<sscl::PuppetThread>>{
|
||||||
std::make_shared<MindThread>(SmoThreadId::DIRECTOR, *this),
|
std::make_shared<MindThread>(SmoThreadId::DIRECTOR),
|
||||||
std::make_shared<MindThread>(SmoThreadId::SIMULATOR, *this),
|
std::make_shared<MindThread>(SmoThreadId::SIMULATOR),
|
||||||
std::make_shared<MindThread>(SmoThreadId::SUBCONSCIOUS, *this),
|
std::make_shared<MindThread>(SmoThreadId::SUBCONSCIOUS),
|
||||||
std::make_shared<MindThread>(SmoThreadId::BODY, *this)
|
std::make_shared<MindThread>(SmoThreadId::BODY)
|
||||||
#ifndef CONFIG_WORLD_USE_BODY_THREAD
|
#ifndef CONFIG_WORLD_USE_BODY_THREAD
|
||||||
, std::make_shared<MindThread>(SmoThreadId::WORLD, *this)
|
, std::make_shared<MindThread>(SmoThreadId::WORLD)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user