Searched defs:num_threads (Results 1 - 4 of 4) sorted by path

/art/runtime/
H A Dbarrier_test.cc55 static int32_t num_threads; member in class:art::BarrierTest
58 int32_t BarrierTest::num_threads = 4; member in class:art::BarrierTest
63 ThreadPool thread_pool("Barrier test thread pool", num_threads);
64 Barrier barrier(num_threads + 1); // One extra Wait() in main thread.
68 for (int32_t i = 0; i < num_threads; ++i) {
72 while (count1.LoadRelaxed() != num_threads) {
81 // Both counts should be equal to num_threads now.
82 EXPECT_EQ(count1.LoadRelaxed(), num_threads);
83 EXPECT_EQ(count2.LoadRelaxed(), num_threads);
114 ThreadPool thread_pool("Barrier test thread pool", num_threads);
[all...]
H A Dthread_pool.cc77 ThreadPool::ThreadPool(const char* name, size_t num_threads) argument
88 creation_barier_(num_threads + 1),
89 max_active_workers_(num_threads) {
91 while (GetThreadCount() < num_threads) {
277 WorkStealingThreadPool::WorkStealingThreadPool(const char* name, size_t num_threads) argument
281 while (GetThreadCount() < num_threads) {
H A Dthread_pool_test.cc55 static int32_t num_threads; member in class:art::ThreadPoolTest
58 int32_t ThreadPoolTest::num_threads = 4; member in class:art::ThreadPoolTest
63 ThreadPool thread_pool("Thread pool test thread pool", num_threads);
65 static const int32_t num_tasks = num_threads * 4;
78 ThreadPool thread_pool("Thread pool test thread pool", num_threads);
80 static const int32_t num_tasks = num_threads * 4;
134 ThreadPool thread_pool("Thread pool test thread pool", num_threads);
/art/runtime/gc/
H A Dheap.cc698 const size_t num_threads = std::max(parallel_gc_threads_, conc_gc_threads_); local
699 if (num_threads != 0) {
700 thread_pool_.reset(new ThreadPool("Heap thread pool", num_threads));

Completed in 73 milliseconds