Mesh: replace QtConcurrent::run with std::async

This commit is contained in:
wmayer
2024-03-11 13:05:05 +01:00
committed by wwmayer
parent 33cacc3fb0
commit 053d0fa047
3 changed files with 19 additions and 13 deletions

View File

@@ -991,7 +991,7 @@ void MeshKernel::RebuildNeighbours(FacetIndex index)
// sort the edges
// std::sort(edges.begin(), edges.end(), Edge_Less());
int threads = QThread::idealThreadCount();
int threads = int(std::thread::hardware_concurrency());
MeshCore::parallel_sort(edges.begin(), edges.end(), Edge_Less(), threads);
PointIndex p0 = POINT_INDEX_MAX, p1 = POINT_INDEX_MAX;