Mind: Use state variables to manage shutdown

We now allow the shutdown*Req() methods of Mind:: to return early
if their aspect of the object in question hasn't actually been
initialized.
This commit is contained in:
2025-09-13 18:59:44 -04:00
parent 25a9721f92
commit 1d3d929ddd
3 changed files with 23 additions and 16 deletions
+2 -1
View File
@@ -73,7 +73,8 @@ private:
* This flag ensures that JOLTing happens exactly once and provides
* a synchronization point for the entire system initialization.
*/
bool threadsHaveBeenJolted = false;
bool threadsHaveBeenJolted = false,
bodyComponentInitialized = false;
// Collection of ComponentThread instances (excluding marionette)
std::vector<std::shared_ptr<ComponentThread>> componentThreads;