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:
@@ -26,6 +26,8 @@ enum SmoThreadId : sscl::ThreadId
|
||||
N_ITEMS
|
||||
};
|
||||
|
||||
std::string getThreadName(sscl::ThreadId id);
|
||||
|
||||
} // namespace smo
|
||||
|
||||
#endif // SMO_COMPONENT_THREAD_H
|
||||
|
||||
@@ -11,10 +11,13 @@ class MindThread
|
||||
{
|
||||
public:
|
||||
MindThread(
|
||||
sscl::ThreadId _id, sscl::PuppetThread::entryPointFn entryPoint,
|
||||
sscl::ThreadId _id, std::string name,
|
||||
sscl::PuppetThread::entryPointFn entryPoint,
|
||||
sscl::PuppetComponent &component,
|
||||
sscl::PuppetThread::preJoltHookFn preJoltFn = nullptr)
|
||||
: sscl::PuppetThread(_id, std::move(entryPoint), component, preJoltFn)
|
||||
: sscl::PuppetThread(
|
||||
_id, std::move(name), std::move(entryPoint),
|
||||
component, preJoltFn)
|
||||
{}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user