Mind: Implement initialize/finalizeBodyReq()

We've done a lot of general work on the init sequencing.
This commit is contained in:
2025-09-12 16:09:26 -04:00
parent b99b147959
commit 25a9721f92
10 changed files with 294 additions and 163 deletions
@@ -23,6 +23,11 @@ public:
return instance;
}
void initialize(void)
{};
void finalize(void)
{};
std::string readDapSpecFile(const std::string& filename);
void collateAllDapSpecs(void);
void parseAllDapSpecs(void);
+4
View File
@@ -23,6 +23,8 @@ public:
typedef std::function<void(bool)> mindLifetimeMgmtOpCbFn;
void initializeReq(mindLifetimeMgmtOpCbFn callback);
void finalizeReq(mindLifetimeMgmtOpCbFn callback);
void initializeBodyReq(mindLifetimeMgmtOpCbFn callback);
void finalizeBodyReq(mindLifetimeMgmtOpCbFn callback);
// ComponentThread access methods
std::shared_ptr<ComponentThread> getComponentThread(
@@ -77,6 +79,8 @@ private:
class MindLifetimeMgmtOp;
class MindThreadLifetimeMgmtOp;
class InitializeBodyReq;
class FinalizeBodyReq;
};
// Global Mind instance will be defined in marionette.cpp
+2 -4
View File
@@ -7,10 +7,8 @@
namespace smo {
typedef std::function<void(bool)> initializeSalmanoffCbFn;
typedef initializeSalmanoffCbFn shutdownSalmanoffCbFn;
void initializeSalmanoff(initializeSalmanoffCbFn callback);
void shutdownSalmanoff(shutdownSalmanoffCbFn callback);
void initializeSalmanoff(void);
void shutdownSalmanoff(void);
} // namespace smo
+7 -2
View File
@@ -24,9 +24,14 @@ public:
return instance;
}
void initialize(void)
{};
void finalize(void)
{};
SenseApiLib& loadSenseApiLib(
const std::string& libraryPath,
std::shared_ptr<ComponentThread>& componentThread);
const std::shared_ptr<ComponentThread>& componentThread);
std::optional<std::shared_ptr<SenseApiLib>> getSenseApiLib(
const std::string& libraryPath);
@@ -38,7 +43,7 @@ public:
void finalizeSenseApiLib(SenseApiLib& lib);
void loadAllSenseApiLibsFromOptions(
std::shared_ptr<ComponentThread>& componentThread);
const std::shared_ptr<ComponentThread>& componentThread);
void unloadAllSenseApiLibs(void);
void initializeAllSenseApiLibs(void);