Lines Matching refs:threads
56 void StartThreads(unsigned int threads, Function&& func) { in StartThreads() argument
57 threads_.reserve(threads); in StartThreads()
58 tids_.reserve(threads); in StartThreads()
59 for (unsigned int i = 0; i < threads; i++) { in StartThreads()
60 threads_.emplace_back([&, threads, this]() { in StartThreads()
64 if (tids_.size() == threads) { in StartThreads()
80 cv_start_.wait(lk, [&] { return tids_.size() == threads; }); in StartThreads()
144 const unsigned int threads = GetParam() - 1; in TEST_P() local
146 StartThreads(threads, []() {}); in TEST_P()
210 const unsigned int threads = GetParam(); in TEST_P() local
215 StartThreads(threads - 1, []() {}); in TEST_P()
232 ASSERT_EQ(threads, list_tids.size()); in TEST_P()
238 ASSERT_EQ(threads, thread_info.size()); in TEST_P()