Libspinscale: begin splitting it off
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
#ifndef MIND_THREAD_H
|
||||
#define MIND_THREAD_H
|
||||
|
||||
#include <memory>
|
||||
#include <componentThread.h>
|
||||
|
||||
namespace smo {
|
||||
|
||||
class Mind; // Forward declaration
|
||||
|
||||
class MindThread
|
||||
: public PuppetThread
|
||||
{
|
||||
public:
|
||||
MindThread(ThreadId _id, Mind& parent)
|
||||
: PuppetThread(_id),
|
||||
parent(parent)
|
||||
{
|
||||
}
|
||||
|
||||
Mind& getParent() const { return parent; }
|
||||
|
||||
protected:
|
||||
void handleException() override;
|
||||
|
||||
public:
|
||||
Mind& parent;
|
||||
};
|
||||
|
||||
} // namespace smo
|
||||
|
||||
#endif // MIND_THREAD_H
|
||||
Reference in New Issue
Block a user