HomeSort by: relevance | last modified time | path
    Searched refs:n_threads (Results 1 - 25 of 40) sorted by relevancy

1 2

  /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...]
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...]
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...]
  /src/external/gpl3/gdb/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/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/dist/gdb/testsuite/gdb.threads/
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++)
attach-non-stop.c 24 static const int n_threads = 10; variable
45 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-non-stop.exp 35 set n_threads 10
68 for {set thread 1} { $thread <= $n_threads } { incr thread } {
78 if {$stops == $n_threads} {
126 gdb_assert {$running_count == ($n_threads + 1)} $gdb_test_name
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)
step-over-thread-exit.exp 146 set n_threads 1
148 set n_threads 100
151 gdb_test_no_output "set args $n_threads"
  /src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.threads/
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++)
attach-non-stop.c 24 static const int n_threads = 10; variable
45 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-non-stop.exp 35 set n_threads 10
68 for {set thread 1} { $thread <= $n_threads } { incr thread } {
78 if {$stops == $n_threads} {
126 gdb_assert {$running_count == ($n_threads + 1)} $gdb_test_name
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)
step-over-thread-exit.exp 146 set n_threads 1
148 set n_threads 100
151 gdb_test_no_output "set args $n_threads"
  /src/external/gpl3/gdb/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.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/bsd/libevent/dist/
event_iocp.c 107 h = CreateIoCompletionPort((HANDLE)fd, port->port, key, port->n_threads);
190 port->n_threads = n_cpus * 2;
191 port->threads = mm_calloc(port->n_threads, sizeof(HANDLE));
205 for (i=0; i<port->n_threads; ++i) {
241 for (i=0; i<port->n_threads; ++i) {
iocp-internal.h 82 short n_threads; member in struct:event_iocp_port
  /src/external/bsd/ntp/dist/sntp/libevent/
event_iocp.c 108 h = CreateIoCompletionPort((HANDLE)fd, port->port, key, port->n_threads);
191 port->n_threads = n_cpus * 2;
192 port->threads = mm_calloc(port->n_threads, sizeof(HANDLE));
206 for (i=0; i<port->n_threads; ++i) {
242 for (i=0; i<port->n_threads; ++i) {
iocp-internal.h 83 short n_threads; member in struct:event_iocp_port
  /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++) {

Completed in 54 milliseconds

1 2