fix numThreadsMax for OpenMP
authorhuangqinjin <huangqinjin@gmail.com>
Wed, 21 Nov 2018 02:52:50 +0000 (10:52 +0800)
committerhuangqinjin <huangqinjin@gmail.com>
Wed, 21 Nov 2018 02:54:24 +0000 (10:54 +0800)
introduced by commit 4e629000095779ae8f544ddd4de77633680a3db9

modules/core/src/parallel.cpp

index a32f2f1..0745b5a 100644 (file)
@@ -427,7 +427,7 @@ static inline int _initMaxThreads()
     {
         omp_set_dynamic(maxThreads);
     }
-    return numThreads;
+    return maxThreads;
 }
 static int numThreadsMax = _initMaxThreads();
 #elif defined HAVE_GCD