Searched refs:num_threads (Results 1 – 9 of 9) sorted by relevance
/system/extras/memory_replay/tests/ |
D | ThreadsTest.cpp | 30 ASSERT_EQ(1U, threads.num_threads()); in TEST() 42 ASSERT_EQ(0U, threads.num_threads()); in TEST() 51 ASSERT_EQ(1U, threads.num_threads()); in TEST() 55 ASSERT_EQ(2U, threads.num_threads()); in TEST() 59 ASSERT_EQ(3U, threads.num_threads()); in TEST() 77 ASSERT_EQ(2U, threads.num_threads()); in TEST() 81 ASSERT_EQ(1U, threads.num_threads()); in TEST() 85 ASSERT_EQ(0U, threads.num_threads()); in TEST() 94 ASSERT_EQ(1U, threads.num_threads()); in TEST() 120 ASSERT_EQ(0U, threads.num_threads()); in TEST()
|
/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/ |
D | snapuserd_verify.cpp | 184 int num_threads = kMinThreadsToVerify; in VerifyPartition() local 186 num_threads = kMaxThreadsToVerify; in VerifyPartition() 191 const int skip_blocks = num_threads; in VerifyPartition() 193 while (num_threads) { in VerifyPartition() 198 num_threads -= 1; in VerifyPartition()
|
/system/extras/ioshark/ |
D | ioshark_bench.c | 614 wait_for_threads(int num_threads) in wait_for_threads() argument 618 for (i = 0; i < num_threads; i++) { in wait_for_threads() 665 int num_threads = 0; in main() local 688 num_threads = atoi(optarg); in main() 709 if (num_threads > MAX_THREADS) in main() 774 if (num_threads == 0 || num_threads > num_files) in main() 775 num_threads = num_files; in main() 780 for (i = 0; i < num_threads; i++) { in main() 789 wait_for_threads(num_threads); in main() 804 for (c = 0; c < num_threads; c++) { in main() [all …]
|
/system/core/init/ |
D | ueventd_test.cpp | 41 auto num_threads = files_and_parameters.size(); in WriteFromMultipleThreads() local 43 pthread_barrier_init(&barrier, nullptr, num_threads); in WriteFromMultipleThreads() 131 constexpr auto num_threads = 10; in TEST() local 187 std::generate_n(back_inserter(threads), num_threads, in TEST()
|
/system/extras/memory_replay/ |
D | Threads.h | 37 size_t num_threads() { return num_threads_; } in num_threads() function
|
/system/core/fs_mgr/libsnapshot/libsnapshot_cow/ |
D | cow_writer.cpp | 449 size_t num_threads = (num_blocks == 1) ? 1 : num_compress_threads_; in CompressBlocks() local 450 size_t num_blocks_per_thread = num_blocks / num_threads; in CompressBlocks() 453 if (num_threads <= 1) { in CompressBlocks() 462 for (size_t i = 0; i < num_threads; i++) { in CompressBlocks() 464 if (i == num_threads - 1) { in CompressBlocks() 472 for (size_t i = 0; i < num_threads; i++) { in CompressBlocks()
|
/system/core/libmodprobe/include/modprobe/ |
D | modprobe.h | 33 bool LoadModulesParallel(int num_threads);
|
/system/core/fs_mgr/libsnapshot/snapuserd/dm-snapshot-merge/ |
D | snapuserd.cpp | 741 int num_threads = 2; in ReadBlocks() local 743 size_t num_blocks_per_thread = num_blocks / num_threads; in ReadBlocks() 747 for (int i = 0; i < num_threads; i++) { in ReadBlocks()
|
/system/core/libmodprobe/ |
D | libmodprobe.cpp | 445 bool Modprobe::LoadModulesParallel(int num_threads) { in LoadModulesParallel() argument 511 std::generate_n(std::back_inserter(threads), num_threads, in LoadModulesParallel()
|