void TestRecursiveMutex( const char * mutex_name ) { for ( int i = 0; i < RecurN; ++i ) { tbb::profiling::set_name(RecurMutex[i], mutex_name); } tbb::tick_count t0 = tbb::tick_count::now(); tbb::parallel_for(tbb::blocked_range<size_t>(0,10000,500), RecursiveAcquisition()); tbb::tick_count t1 = tbb::tick_count::now(); REMARK( "%s recursive mutex time = %g usec\n", mutex_name, (t1-t0).seconds() ); }
void TestRecursiveMutex( const char * mutex_name ) { tbb::tick_count t0 = tbb::tick_count::now(); tbb::parallel_for(tbb::blocked_range<size_t>(0,10000,500), RecursiveAcquisition()); tbb::tick_count t1 = tbb::tick_count::now(); if( Verbose ) { printf("%s recursive mutex time = %g usec\n", mutex_name, (t1-t0).seconds()); } }