Home
last modified time | relevance | path

Searched refs:num_threads (Results 1 – 5 of 5) sorted by relevance

/art/runtime/
Dbarrier_test.cc55 static int32_t num_threads; member in art::BarrierTest
58 int32_t BarrierTest::num_threads = 4; member in art::BarrierTest
63 ThreadPool thread_pool("Barrier test thread pool", num_threads); in TEST_F()
64 Barrier barrier(num_threads + 1); // One extra Wait() in main thread. in TEST_F()
68 for (int32_t i = 0; i < num_threads; ++i) { in TEST_F()
72 while (count1.LoadRelaxed() != num_threads) { in TEST_F()
82 EXPECT_EQ(count1.LoadRelaxed(), num_threads); in TEST_F()
83 EXPECT_EQ(count2.LoadRelaxed(), num_threads); in TEST_F()
114 ThreadPool thread_pool("Barrier test thread pool", num_threads); in TEST_F()
117 const int32_t num_tasks = num_threads * 4; in TEST_F()
Dthread_pool_test.cc55 static int32_t num_threads; member in art::ThreadPoolTest
58 int32_t ThreadPoolTest::num_threads = 4; member in art::ThreadPoolTest
63 ThreadPool thread_pool("Thread pool test thread pool", num_threads); in TEST_F()
65 static const int32_t num_tasks = num_threads * 4; in TEST_F()
78 ThreadPool thread_pool("Thread pool test thread pool", num_threads); in TEST_F()
80 static const int32_t num_tasks = num_threads * 4; in TEST_F()
130 ThreadPool thread_pool("Thread pool test thread pool", num_threads); in TEST_F()
Dthread_pool.cc78 ThreadPool::ThreadPool(const char* name, size_t num_threads) in ThreadPool() argument
89 creation_barier_(num_threads + 1), in ThreadPool()
90 max_active_workers_(num_threads) { in ThreadPool()
92 while (GetThreadCount() < num_threads) { in ThreadPool()
279 WorkStealingThreadPool::WorkStealingThreadPool(const char* name, size_t num_threads) in WorkStealingThreadPool() argument
283 while (GetThreadCount() < num_threads) { in WorkStealingThreadPool()
Dthread_pool.h94 explicit ThreadPool(const char* name, size_t num_threads);
185 explicit WorkStealingThreadPool(const char* name, size_t num_threads);
/art/runtime/gc/
Dheap.cc777 const size_t num_threads = std::max(parallel_gc_threads_, conc_gc_threads_); in CreateThreadPool() local
778 if (num_threads != 0) { in CreateThreadPool()
779 thread_pool_.reset(new ThreadPool("Heap thread pool", num_threads)); in CreateThreadPool()