Moved JOLT state tracking into ComponentThread::

This commit is contained in:
2025-08-10 13:29:34 -04:00
parent 42b32f27e6
commit 099d60bcc4
4 changed files with 11 additions and 9 deletions
+2
View File
@@ -120,6 +120,8 @@ public:
boost::asio::io_service::work pause_work;
std::atomic<bool> keepLooping;
int pinnedCpuId;
// Indicates whether all mind threads have been JOLTed at least once
static std::atomic<bool> threadsHaveBeenJolted;
/* Always ensure that this is last so that the thread is spawned after
* everything else is constructed.
+1 -4
View File
@@ -13,7 +13,7 @@ namespace smo {
class Mind
{
public:
Mind(void) : threadsHaveBeenJolted(false) {}
Mind(void) {}
void initialize(void);
void execute(void);
@@ -26,9 +26,6 @@ public:
director::Director director;
simulator::Simulator canvas;
private:
bool threadsHaveBeenJolted;
};
extern Mind mind;