33 lines
462 B
C++
33 lines
462 B
C++
#ifndef MIND_THREAD_H
|
|
#define MIND_THREAD_H
|
|
|
|
#include <memory>
|
|
#include <componentThread.h>
|
|
|
|
namespace smo {
|
|
|
|
class Mind; // Forward declaration
|
|
|
|
class MindThread
|
|
: public sscl::PuppetThread
|
|
{
|
|
public:
|
|
MindThread(sscl::ThreadId _id, Mind& parent)
|
|
: sscl::PuppetThread(_id),
|
|
parent(parent)
|
|
{
|
|
}
|
|
|
|
Mind& getParent() const { return parent; }
|
|
|
|
protected:
|
|
void handleException() override;
|
|
|
|
public:
|
|
Mind& parent;
|
|
};
|
|
|
|
} // namespace smo
|
|
|
|
#endif // MIND_THREAD_H
|