fix numThreadsMax for OpenMP

introduced by commit 4e62900009
pull/13232/head
huangqinjin 6 years ago
parent a1fe8f754f
commit e1ac8589f8
  1. 2
      modules/core/src/parallel.cpp

@ -427,7 +427,7 @@ static inline int _initMaxThreads()
{
omp_set_dynamic(maxThreads);
}
return numThreads;
return maxThreads;
}
static int numThreadsMax = _initMaxThreads();
#elif defined HAVE_GCD

Loading…
Cancel
Save