We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 230f22b commit 50b9a5aCopy full SHA for 50b9a5a
modules/ts/src/ts_perf.cpp
@@ -1212,6 +1212,18 @@ int64 TestBase::_calibrate()
1212
}
1213
};
1214
1215
+ // Initialize ThreadPool
1216
+ class _dummyParallel : public ParallelLoopBody
1217
+ {
1218
+ public:
1219
+ void operator()(const cv::Range& range) const
1220
1221
+ // nothing
1222
+ CV_UNUSED(range);
1223
+ }
1224
+ };
1225
+ parallel_for_(cv::Range(0, 1000), _dummyParallel());
1226
+
1227
_timeadjustment = 0;
1228
_helper h;
1229
h.PerfTestBody();
@@ -1838,6 +1850,8 @@ void TestBase::SetUp()
1838
1850
1839
1851
if (param_threads >= 0)
1840
1852
cv::setNumThreads(param_threads);
1853
+ else
1854
+ cv::setNumThreads(-1);
1841
1855
1842
1856
#ifdef __ANDROID__
1843
1857
if (param_affinity_mask)
0 commit comments