aec3cbedf2
This completes the functional work of splitting libspinscale off from SMO. Spinscale shouldn't have any real dependencies on SMO from here on out.
30 lines
574 B
C++
30 lines
574 B
C++
#include <iostream>
|
|
#include <mindComponent.h>
|
|
#include <marionette/marionette.h>
|
|
|
|
namespace smo {
|
|
|
|
void MindComponent::preJoltHook(sscl::PuppetThread &self)
|
|
{
|
|
pthread_setname_np(pthread_self(), self.name.c_str());
|
|
}
|
|
|
|
void MindComponent::handleLoopExceptionHook()
|
|
{
|
|
mrntt::mrntt.exceptionInd();
|
|
}
|
|
|
|
void MindComponent::preLoopHook()
|
|
{
|
|
std::cout << thread->name << ":defaultPuppetMain"
|
|
<< ": Entering event loop" << "\n";
|
|
}
|
|
|
|
void MindComponent::postLoopHook()
|
|
{
|
|
std::cout << thread->name << ":defaultPuppetMain"
|
|
<< ": Exited event loop" << "\n";
|
|
}
|
|
|
|
} // namespace smo
|