/external/strace/test/ |
many_looping_threads.c | 34 int num_threads = 1; local 37 num_threads = atoi(argv[1]); 39 thd = malloc(num_threads * sizeof(thd[0])); 40 dprintf(1, "test start, num_threads:%d...\n", num_threads); 42 for (i = 0; i < num_threads; i++) {
|
/external/compiler-rt/test/lsan/TestCases/ |
high_allocator_contention.cc | 10 int num_threads; variable 23 for (int i = 0; i < total_num_alloc / num_threads; i++) { 33 num_threads = atoi(argv[1]); 34 assert(num_threads > 0); 35 assert(num_threads <= kMaxNumThreads); 38 printf("%d threads, %d allocations in each\n", num_threads, 39 total_num_alloc / num_threads); 40 for (int i = 0; i < num_threads; i++) 46 for (int i = 0; i < num_threads; i++) pthread_join(tid[i], 0);
|
/external/google-breakpad/src/client/linux/minidump_writer/ |
linux_dumper_unittest_helper.cc | 80 int num_threads = atoi(argv[2]); local 81 if (num_threads < 1) { 85 google_breakpad::scoped_array<pthread_t> threads(new pthread_t[num_threads]); 89 for (int i = 1; i < num_threads; i++) {
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
lp_screen.h | 52 unsigned num_threads; member in struct:llvmpipe_screen
|
lp_rast_priv.h | 125 unsigned num_threads; member in struct:lp_rasterizer
|
lp_setup_context.h | 87 unsigned num_threads; member in struct:lp_setup_context
|
/external/valgrind/drd/tests/ |
omp_printf.c | 27 int num_threads = 2; local 36 case 't': num_threads = atoi(optarg); break; 47 assert(num_threads > 0); 49 omp_set_num_threads(num_threads);
|
omp_prime.c | 42 int num_threads = 2; local 55 num_threads = atoi(optarg); 76 assert(num_threads >= 1); 81 omp_set_num_threads(num_threads);
|
/art/runtime/ |
thread_pool_test.cc | 55 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; 130 ThreadPool thread_pool("Thread pool test thread pool", num_threads);
|
barrier_test.cc | 55 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...] |
/external/ceres-solver/include/ceres/ |
covariance.h | 211 num_threads(1), 318 int num_threads; member in struct:ceres::Covariance::Options
|
problem.h | 385 num_threads(1) { 423 int num_threads; member in struct:ceres::Problem::EvaluateOptions
|
/external/ceres-solver/internal/ceres/ |
evaluator.h | 62 : num_threads(1), 67 int num_threads; member in struct:ceres::internal::Evaluator::Options 85 // The parallelism of the evaluator is controlled by num_threads; it 96 int num_threads,
|
preconditioner.h | 54 num_threads(1), 65 int num_threads; member in struct:ceres::internal::Preconditioner::Options
|
linear_solver.h | 104 num_threads(1), 127 int num_threads; member in struct:ceres::internal::LinearSolver::Options
|
minimizer.h | 64 num_threads = options.num_threads; 122 int num_threads; member in struct:ceres::internal::Minimizer::Options
|
/external/libxml2/ |
testThreads.c | 100 unsigned int num_threads = sizeof(testfiles) / sizeof(testfiles[0]); local 108 memset(results, 0, sizeof(*results)*num_threads); 109 memset(tid, 0xff, sizeof(*tid)*num_threads); 111 for (i = 0; i < num_threads; i++) { 119 for (i = 0; i < num_threads; i++) { 128 for (i = 0; i < num_threads; i++) 141 unsigned int num_threads = sizeof(testfiles) / sizeof(testfiles[0]); local 151 for (i = 0; i < num_threads; i++) { 156 for (i = 0; i < num_threads; i++) { 164 for (i = 0; i < num_threads; i++) [all...] |
testThreadsWin32.c | 89 unsigned int num_threads = sizeof(testfiles) / sizeof(testfiles[0]); local 98 for (i = 0; i < num_threads; i++) 104 for (i = 0; i < num_threads; i++) 116 if (WaitForMultipleObjects (num_threads, tid, TRUE, INFINITE) == WAIT_FAILED) 119 for (i = 0; i < num_threads; i++) 131 for (i = 0; i < num_threads; i++) {
|
/system/extras/memory_replay/ |
Threads.h | 37 size_t num_threads() { return num_threads_; } function in class:Threads
|
/external/autotest/client/tests/monotonic_time/src/ |
threads.c | 27 static int num_threads; variable 61 if (num_threads >= MAX_THREADS) 64 thread = &threads[num_threads++]; 73 --num_threads; 78 return num_threads; 95 thread = &threads[num_threads++]; 103 --num_threads; 108 return num_threads; 117 while (num_threads > 0) 118 pthread_join(threads[--num_threads].thread, NULL) [all...] |
/external/compiler-rt/test/asan/TestCases/Linux/ |
stress_dtls.c | 73 int num_threads = 1; local 76 num_threads = atoi(argv[1]); 100 for (i = 0; i < num_threads; i++) {
|
/external/libvpx/libvpx/test/ |
vp9_skip_loopfilter_test.cc | 40 void Init(int num_threads) { 49 if (num_threads > 0) 50 cfg.threads = num_threads; 128 const int num_threads = 0; local 130 skip_loop_filter.Init(num_threads); 138 const int num_threads = 1; local 140 skip_loop_filter.Init(num_threads); 148 const int num_threads = 8; local 150 skip_loop_filter.Init(num_threads); 158 const int num_threads = 0 local 168 const int num_threads = 0; local [all...] |
/external/google-breakpad/src/client/linux/microdump_writer/ |
microdump_writer.cc | 237 const unsigned num_threads = dumper_->threads().size(); local 239 for (unsigned i = 0; i < num_threads; ++i) {
|
/system/extras/tests/memtest/ |
bandwidth.cpp | 56 { "num_threads", true }, 257 bool runThreadedTest(thread_arg_t args[], int num_threads, int run_time) { 258 pthread_t threads[num_threads]; 262 for (int i = 0; i < num_threads; i++) { 282 for (int i = 0; i < num_threads; i++) { 338 if (values.count("num_threads") == 0) { 339 printf("Must specify the num_threads value.\n"); 342 int num_threads = values["num_threads"].int_value; local 344 thread_arg_t args[num_threads]; [all...] |
/external/autotest/client/tests/signaltest/src/ |
signaltest.c | 223 static int num_threads = 2; variable 255 case 't': num_threads = atoi(optarg); break; 264 if (num_threads < 2) 337 par = calloc(num_threads, sizeof(struct thread_param)); 340 stat = calloc(num_threads, sizeof(struct thread_stat)); 344 for (i = 0; i < num_threads; i++) { 371 for (i = 0; i < num_threads; i++) { 378 for (i = 0; i < num_threads - 1; i++) 413 for (i = 0; i < num_threads; i++) {
|