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:
@@ -75,7 +75,7 @@ void ComponentThread::marionetteMain(ComponentThread& self)
|
||||
throw JustPrintUsageNoError(options);
|
||||
}
|
||||
|
||||
initializeSalmanoff();
|
||||
initializeSalmanoff(mrntt::mrntt);
|
||||
self.getIoService().post([]()
|
||||
{
|
||||
// Initialize the global Mind object
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user