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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user