1c397dfeb5
Now we can probably begin using libspinscale in Couresilient without worrying about excessive technical debt later on.
30 lines
572 B
C++
30 lines
572 B
C++
#include <iostream>
|
|
#include <mindComponent.h>
|
|
#include <marionette/marionette.h>
|
|
|
|
namespace smo {
|
|
|
|
void MindComponent::preJoltHook(sscl::PuppetThread &thr)
|
|
{
|
|
pthread_setname_np(pthread_self(), thr.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
|