Files
salmanoff/smocore/mind.cpp
T
hayodea 1deb92a416 CompThreads: create execOpOnAllMindThreads common helper
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.
2025-08-03 08:22:45 -04:00

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