dual-threaded fill of lensfun treestores, #4140

This commit is contained in:
heckflosse
2017-10-13 21:05:37 +02:00
parent 93f6bf89b9
commit 77b3576059

View File

@@ -582,13 +582,27 @@ bool LensProfilePanel::checkLensfunCanCorrect(bool automatch)
//-----------------------------------------------------------------------------
LensProfilePanel::LFDbHelper::LFDbHelper()
{
#ifdef _OPENMP
#pragma omp parallel sections
#endif
{
#ifdef _OPENMP
#pragma omp section
#endif
{
lensfunCameraModel = Gtk::TreeStore::create(lensfunModelCam);
lensfunLensModel = Gtk::TreeStore::create(lensfunModelLens);
fillLensfunCameras();
}
#ifdef _OPENMP
#pragma omp section
#endif
{
lensfunLensModel = Gtk::TreeStore::create(lensfunModelLens);
fillLensfunLenses();
}
}
}
void LensProfilePanel::LFDbHelper::fillLensfunCameras()
{