Moved JOLT state tracking into ComponentThread::
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user