Commit 343e13b9 authored by Alexander Wiebel's avatar Alexander Wiebel

[CHANGE] searialize loading of a number of datasets

parent ccd16b9c
......@@ -252,10 +252,11 @@ void WKernel::loadDataSets( std::vector< std::string > fileNames )
using boost::shared_ptr;
for( std::vector< std::string >::iterator iter = fileNames.begin(); iter != fileNames.end(); ++iter )
{
std::cout<< *iter << std::endl;
shared_ptr< WModule > mod = m_moduleFactory->create( m_moduleFactory->getPrototypeByName( "Data Module" ) );
mod->getProperties()->setValue( "filename" , ( *iter ) );
m_moduleContainer->add( mod );
// searialize loading of a couple of data sets
mod->isReady().wait();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment