1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Merge remote-tracking branch 'upstream/3.4' into merge-3.4

This commit is contained in:
Alexander Alekhin
2018-09-10 00:04:29 +03:00
107 changed files with 492 additions and 485 deletions
+2 -2
View File
@@ -518,7 +518,7 @@ void cv::parallel_for_(const cv::Range& range, const cv::ParallelLoopBody& body,
else // nested parallel_for_() calls are not parallelized
#endif // CV_PARALLEL_FRAMEWORK
{
(void)nstripes;
CV_UNUSED(nstripes);
body(range);
}
}
@@ -680,7 +680,7 @@ unsigned defaultNumberOfThreads()
void cv::setNumThreads( int threads_ )
{
(void)threads_;
CV_UNUSED(threads_);
#ifdef CV_PARALLEL_FRAMEWORK
int threads = (threads_ < 0) ? defaultNumberOfThreads() : (unsigned)threads_;
numThreads = threads;