Commit 3381c4a1 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[CHANGE] - Lic now uses WSubject's ticket system for read-accessing the dataset list

parent e306d5b2
......@@ -228,18 +228,16 @@ boost::shared_ptr< WDataSetVector > WMLIC::searchVectorDS() const
return result;
}
WSubject::DatasetAccess da = subject->getAccessObject();
da->beginRead();
// This lock gets unlocked if it is destroyed ( looses scope )
WSubject::DatasetSharedContainerType::ReadTicket da = subject->getDatasets();
for( std::vector< boost::shared_ptr< WDataSet > >::iterator it = da->get().begin(); it != da->get().end(); ++it )
for( WSubject::DatasetConstIterator it = da->get().begin(); it != da->get().end(); ++it )
{
if( ( *it )->isVectorDataSet() )
{
da->endRead();
return ( *it )->isVectorDataSet();
}
}
da->endRead();
return result;
}
......
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