virtual void run() { size_t stage = 0; while( true ) { stage += STAGESIZE; stage_.waitGE( stage ); if( stage_ == std::numeric_limits< size_t >::max( )) return; if( vector ) { for( size_t i = 0; i < LOOPSIZE; ++i ) { if( i < vector->size( )) { const size_t value = (*vector)[ i ]; TESTINFO( i == value || value == 0, i << " - " << value << " - " << (*vector)[i]<< ": " << *vector ); } } rTime_ = _clock.getTimef(); } ++stage_; } }
virtual void run() { size_t stage = 0; while( true ) { stage += STAGESIZE; stage_.waitGE( stage ); if( stage_ == std::numeric_limits< size_t >::max( )) return; if( vector ) { while( vector->size() < LOOPSIZE ) vector->push_back( 0 ); pTime_ = _clock.getTimef(); } ++stage_; } }
virtual void run() { size_t stage = 0; while( true ) { stage += STAGESIZE; stage_.waitGE( stage ); if( stage_ == std::numeric_limits< size_t >::max( )) return; if( vector ) { for( size_t i = 0; i < LOOPSIZE; ++i ) { if( i < vector->size( )) (*vector)[ i ] = i; } wTime_ = _clock.getTimef(); } ++stage_; } }