Skip to content
Snippets Groups Projects
Commit 4b21060b authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Speedup in autosave thread to not to slow down real time thread (clone is much faster than saving)

parent 7319051b
No related branches found
No related tags found
No related merge requests found
......@@ -65,7 +65,9 @@ void DataItem::saveData(const QString& projectDir)
return;
std::unique_lock<std::mutex> lock(m_update_data_mutex);
IntensityDataIOFactory::writeOutputData(*getOutputData(),
std::unique_ptr<OutputData<double>> clone(getOutputData()->clone());
lock.unlock();
IntensityDataIOFactory::writeOutputData(*clone,
fileName(projectDir).toStdString());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment