1deb92a416
This allows us to execute an op on all mind threads without having to repeatedly write loops. We've implemented wrappers to handle start, pause, resume, exit and JOLT sequences.
29 lines
562 B
C++
29 lines
562 B
C++
#include <iostream>
|
|
#include <mind.h>
|
|
#include <componentThread.h>
|
|
|
|
namespace smo {
|
|
|
|
void Mind::initialize()
|
|
{
|
|
/* Jolt the threads, then start them */
|
|
ComponentThread::joltAllMindThreadsReq(
|
|
[]()
|
|
{
|
|
std::cout << "Mrntt: All mind threads JOLTed." << "\n";
|
|
ComponentThread::startAllMindThreadsReq(
|
|
[]()
|
|
{
|
|
std::cout << "Mrntt: All mind threads started." << "\n";
|
|
}
|
|
);
|
|
}
|
|
);
|
|
}
|
|
|
|
void Mind::finalize(void)
|
|
{
|
|
}
|
|
|
|
} // namespace smo
|