Now that we fixed sync issues, we should have better timings...

This commit is contained in:
Pavel Krajcevski 2012-08-31 17:45:55 -04:00
parent 44884a18b3
commit 278a59e24a

View file

@ -132,16 +132,13 @@ void ThreadGroup::Join() {
m_FinishCV->wait(lock);
}
m_StopWatch.Stop();
for(int i = 0; i < m_ActiveThreads; i++) {
m_ThreadHandles[i]->join();
delete m_ThreadHandles[i];
}
// !FIXME! This will also take the thread deletion into account. We
// should really be using better synchronization to actually only
// measure how long it takes for all threads to finish execution.
m_StopWatch.Stop();
// Reset active number of threads...
m_ActiveThreads = 0;
}