Various updates (remove warnings, improve responsiveness of the UI by lowering the number of threads, et.)

This commit is contained in:
Daniel Girardeau-Montaut
2023-06-07 00:04:44 +02:00
parent d35104d5be
commit 00045e8c6e
7 changed files with 34 additions and 13 deletions
+5
View File
@@ -26,6 +26,10 @@
//Qt
#include <QMutex>
#if defined(_OPENMP)
#include <omp.h>
#endif
using namespace masc;
bool ContextBasedFeature::checkValidity(QString corePointRole, QString &error) const
@@ -187,6 +191,7 @@ bool ContextBasedFeature::prepare( const CorePoints& corePoints,
bool cancelled = false;
#ifndef _DEBUG
#if defined(_OPENMP)
omp_set_num_threads(std::max(1, omp_get_max_threads() - 2));
#pragma omp parallel for
#endif
#endif