| /src/sys/external/bsd/compiler_rt/dist/lib/tsan/benchmarks/ |
| start_many_threads.cc | 25 int n_threads; local 27 n_threads = 100; 29 n_threads = atoi(argv[1]); 31 printf("Usage: %s n_threads\n", argv[0]); 34 printf("%s: n_threads=%d\n", __FILE__, n_threads); 36 pthread_barrier_init(&all_threads_ready, NULL, n_threads + 1); 38 pthread_t *t = new pthread_t[n_threads]; 39 for (int i = 0; i < n_threads; i++) { 45 for (int i = 0; i < n_threads; i++) [all...] |
| mini_bench_local.cc | 27 int n_threads = 0; local 29 n_threads = 4; 32 n_threads = atoi(argv[1]); 33 assert(n_threads > 0 && n_threads <= 32); 36 printf("%s: n_threads=%d len=%d iter=%d\n", 37 __FILE__, n_threads, len, kNumIter); 38 a = new int[n_threads * len]; 39 pthread_t *t = new pthread_t[n_threads]; 40 for (int i = 0; i < n_threads; i++) [all...] |
| mini_bench_shared.cc | 27 int n_threads = 0; local 29 n_threads = 4; 32 n_threads = atoi(argv[1]); 33 assert(n_threads > 0 && n_threads <= 32); 36 printf("%s: n_threads=%d len=%d iter=%d\n", 37 __FILE__, n_threads, len, kNumIter); 41 pthread_t *t = new pthread_t[n_threads]; 42 for (int i = 0; i < n_threads; i++) { 45 for (int i = 0; i < n_threads; i++) [all...] |
| vts_many_threads_bench.cc | 45 int n_threads, n_iterations; variable 62 int offset = idx * kNumMutexes / n_threads; 74 n_threads = 2; 78 n_threads = atoi(argv[1]); 79 assert(n_threads > 0 && n_threads <= 32); 84 printf("Usage: %s n_threads n_garbage_threads n_iterations\n", argv[0]); 87 printf("%s: n_threads=%d n_garbage_threads=%d n_iterations=%d\n", 88 __FILE__, n_threads, n_garbage_threads, n_iterations); 90 pthread_barrier_init(&all_threads_ready, NULL, n_garbage_threads + n_threads + 1) [all...] |
| /src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/ |
| attach-non-stop.c | 24 static const int n_threads = 10; variable 45 for (i = 0; i < n_threads; ++i)
|
| step-over-thread-exit.c | 35 int n_threads = 100; variable 43 n_threads = atoi (argv[1]); 45 /* Spawn and join a thread, N_THREADS times. */ 46 for (i = 0; i < n_threads; i++)
|
| detach-step-over.c | 28 int n_threads = 10; variable 84 n_threads = atoi (argv[1]); 87 for (i = 0; i < n_threads; ++i)
|
| attach-many-short-lived-threads.c | 32 int n_threads = 50; variable 133 n_threads = atoi (argv[1]); 147 for (i = 0; i < n_threads; ++i)
|
| /src/external/gpl3/gdb/dist/gdb/testsuite/gdb.threads/ |
| attach-non-stop.c | 24 static const int n_threads = 10; variable 45 for (i = 0; i < n_threads; ++i)
|
| step-over-thread-exit.c | 35 int n_threads = 100; variable 43 n_threads = atoi (argv[1]); 45 /* Spawn and join a thread, N_THREADS times. */ 46 for (i = 0; i < n_threads; i++)
|
| detach-step-over.c | 28 int n_threads = 10; variable 84 n_threads = atoi (argv[1]); 87 for (i = 0; i < n_threads; ++i)
|
| attach-many-short-lived-threads.c | 32 int n_threads = 50; variable 133 n_threads = atoi (argv[1]); 147 for (i = 0; i < n_threads; ++i)
|
| /src/external/gpl3/gdb.old/dist/gdb/unittests/ |
| parallel-for-selftests.c | 40 : n_threads (gdb::thread_pool::g_thread_pool->thread_count ()) 46 gdb::thread_pool::g_thread_pool->set_thread_count (n_threads); 49 int n_threads; member in struct:save_restore_n_threads 67 test (int n_threads) 69 test_par (n_threads); 70 test_seq (n_threads); 99 TEST (int n_threads) 102 gdb::thread_pool::g_thread_pool->set_thread_count (n_threads);
|
| /src/external/gpl3/gdb.old/dist/gdbsupport/ |
| parallel-for.h | 53 size_t n_threads = n_worker_threads; local 58 if (n_threads > 1) 63 if (n_elements / n_threads < n) 64 n_threads = std::max (n_elements / n, (size_t) 1); 65 elts_per_thread = n_elements / n_threads; 66 elts_left_over = n_elements % n_threads; 67 /* n_elements == n_threads * elts_per_thread + elts_left_over. */ 70 size_t count = n_threads == 0 ? 0 : n_threads - 1;
|
| /src/external/gpl3/gdb/dist/gdb/unittests/ |
| parallel-for-selftests.c | 33 : n_threads (gdb::thread_pool::g_thread_pool->thread_count ()) 39 gdb::thread_pool::g_thread_pool->set_thread_count (n_threads); 42 int n_threads; member in struct:save_restore_n_threads 50 test_one (int n_threads, do_foreach_t do_foreach) 53 gdb::thread_pool::g_thread_pool->set_thread_count (n_threads); 102 for (int n_threads : { 0, 1, 3 }) 104 test_one (n_threads, for_each_function);
|
| /src/external/gpl3/gdb/dist/gdbsupport/ |
| parallel-for.h | 52 size_t n_threads = n_worker_threads; local 57 if (n_threads > 1) 62 if (n_elements / n_threads < n) 63 n_threads = std::max (n_elements / n, (size_t) 1); 64 elts_per_thread = n_elements / n_threads; 65 elts_left_over = n_elements % n_threads; 66 /* n_elements == n_threads * elts_per_thread + elts_left_over. */ 69 size_t count = n_threads == 0 ? 0 : n_threads - 1;
|
| /src/external/bsd/libevent/dist/ |
| iocp-internal.h | 82 short n_threads; member in struct:event_iocp_port
|
| /src/external/bsd/ntp/dist/sntp/libevent/ |
| iocp-internal.h | 83 short n_threads; member in struct:event_iocp_port
|
| /src/external/bsd/jemalloc/dist/test/unit/ |
| background_thread_init.c | 20 static unsigned n_threads; variable 32 bool should_release = (waiting == n_threads); 73 n_threads = N_INIT_THREADS; 115 n_threads = N_INIT_THREADS;
|
| /src/sys/external/bsd/compiler_rt/dist/lib/asan/tests/ |
| asan_noinst_test.cc | 180 const int n_threads = 3000; local 182 for (int i = 0; i < n_threads; i++) {
|
| /src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/ |
| tsan_rtl.cc | 140 uptr n_threads; local 142 ctx->thread_registry->GetNumberOfThreads(&n_threads, &n_running_threads); 144 WriteMemoryProfile(buf.data(), buf.size(), n_threads, n_running_threads);
|
| /src/external/gpl3/gdb.old/dist/gdb/ |
| maint.c | 860 int n_threads = n_worker_threads; local 862 if (n_threads < 0) 866 between n_threads=5 to 8. Therefore, use no more than 8 threads 870 n_threads = std::min (hardware_threads, max_thread_count); 873 gdb::thread_pool::g_thread_pool->set_thread_count (n_threads);
|
| /src/external/gpl3/gdb/dist/gdb/ |
| maint.c | 874 int n_threads = n_worker_threads; local 876 if (n_threads < 0) 880 between n_threads=5 to 8. Therefore, use no more than 8 threads 884 n_threads = std::min (hardware_threads, max_thread_count); 887 gdb::thread_pool::g_thread_pool->set_thread_count (n_threads);
|
| /src/external/bsd/libevent/dist/test/ |
| regress_dns.c | 2270 int n_threads = sysconf(_SC_NPROCESSORS_ONLN) + 1; local 2272 int n_threads = 17; local 2279 thread = calloc(n_threads, sizeof(*thread)); 2312 for (i = 1; i < n_threads; i++) {
|
| /src/external/bsd/ntp/dist/sntp/libevent/test/ |
| regress_dns.c | 2268 int n_threads = sysconf(_SC_NPROCESSORS_ONLN) + 1; local 2270 int n_threads = 17; local 2272 THREAD_T thread[n_threads]; 2307 for (i = 1; i < n_threads; i++) {
|