Minor perf tests framework improvement

pull/13383/head
Andrey Kamaev 13 years ago
parent 59d89c7a7a
commit 41d3a9a192
  1. 2
      modules/ts/include/opencv2/ts/ts_perf.hpp
  2. 5
      modules/ts/src/ts_perf.cpp

@ -287,7 +287,7 @@ private:
_declareHelper& iterations(int n);
_declareHelper& time(double timeLimitSecs);
_declareHelper& tbb_threads(int n);
_declareHelper& tbb_threads(int n = -1);
private:
TestBase* test;
_declareHelper(TestBase* t);

@ -898,10 +898,9 @@ TestBase::_declareHelper& TestBase::_declareHelper::time(double timeLimitSecs)
TestBase::_declareHelper& TestBase::_declareHelper::tbb_threads(int n)
{
#ifdef HAVE_TBB
if (n > 0) {
test->p_tbb_initializer.release();
test->p_tbb_initializer.release();
if (n > 0)
test->p_tbb_initializer=new tbb::task_scheduler_init(n);
}
#endif
return *this;
}

Loading…
Cancel
Save