Minor perf tests framework improvement
This commit is contained in:
parent
59d89c7a7a
commit
41d3a9a192
@ -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…
x
Reference in New Issue
Block a user