mirror of
https://github.com/QIDITECH/QIDISlicer.git
synced 2026-02-02 00:48:43 +03:00
Prusa 2.7.2
This commit is contained in:
@@ -231,12 +231,11 @@ void name_tbb_thread_pool_threads_set_locale()
|
||||
// const size_t nthreads_hw = std::thread::hardware_concurrency();
|
||||
const size_t nthreads_hw = tbb::this_task_arena::max_concurrency();
|
||||
size_t nthreads = nthreads_hw;
|
||||
if (thread_count) {
|
||||
nthreads = std::min(nthreads_hw, *thread_count);
|
||||
}
|
||||
|
||||
#if 0
|
||||
// Shiny profiler is not thread safe, thus disable parallelization.
|
||||
disable_multi_threading();
|
||||
nthreads = 1;
|
||||
#endif
|
||||
enforce_thread_count(nthreads);
|
||||
|
||||
size_t nthreads_running(0);
|
||||
std::condition_variable cv;
|
||||
|
||||
Reference in New Issue
Block a user