Files
salmanoff/smocore/include/mindThread.h
T

33 lines
462 B
C++
Raw Normal View History

2025-12-26 01:18:39 -04:00
#ifndef MIND_THREAD_H
#define MIND_THREAD_H
#include <memory>
#include <componentThread.h>
namespace smo {
class Mind; // Forward declaration
class MindThread
2025-12-27 16:21:22 -04:00
: public sscl::PuppetThread
2025-12-26 01:18:39 -04:00
{
public:
2025-12-27 16:21:22 -04:00
MindThread(sscl::ThreadId _id, Mind& parent)
: sscl::PuppetThread(_id),
2025-12-26 01:18:39 -04:00
parent(parent)
{
}
Mind& getParent() const { return parent; }
protected:
void handleException() override;
public:
Mind& parent;
};
} // namespace smo
#endif // MIND_THREAD_H