Lines Matching refs:threads
219 std::vector<std::thread> threads(threadcount);
222 // We need to first set up the counters, then start the threads, so the
223 // threads would inherit the counters. But later, we need to first destroy
229 for (auto& t : threads) t = std::thread(work);
231 for (auto& t : threads) t.join();
244 // In this case the threads will run sequentially
245 // Start two threads and measure the number of combined cycles and
252 // Start four threads and measure the number of combined cycles and
260 // of cpus) - it seems that in some circumstances the runtime of 4 threads
262 // So instead of expecting 4 threads to be slower, let's just make sure they