SenseApis: Add threading model info to initialization info

We provide access to a thread whose event queue the sense API
libs can use for device-independent event management.
This commit is contained in:
2025-09-04 17:35:49 -04:00
parent 1d9b8a2cf6
commit e5a3c41c20
7 changed files with 68 additions and 13 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ void ComponentThread::marionetteMain(ComponentThread& self)
throw JustPrintUsageNoError(options);
}
initializeSalmanoff();
initializeSalmanoff(mrntt::mrntt);
self.getIoService().post([]()
{
// Initialize the global Mind object
+2 -2
View File
@@ -4,14 +4,14 @@
namespace smo {
void initializeSalmanoff(void)
void initializeSalmanoff(std::shared_ptr<ComponentThread>& componentThread)
{
std::cout << __func__ << ": Entered." << std::endl;
device::DeviceManager::getInstance().collateAllDapSpecs();
device::DeviceManager::getInstance().parseAllDapSpecs();
std::cout << device::DeviceManager::stringifyDeviceSpecs() << std::endl;
sense_api::SenseApiManager::getInstance().loadAllSenseApiLibsFromOptions();
sense_api::SenseApiManager::getInstance().loadAllSenseApiLibsFromOptions(componentThread);
std::cout << sense_api::SenseApiManager::getInstance().stringifyLibs()
<< std::endl;
std::cerr << "About to initializeAllSenseApiLibs" << std::endl;