Home
last modified time | relevance | path

Searched refs:n_threads (Results 1 – 16 of 16) sorted by relevance

/external/compiler-rt/lib/tsan/benchmarks/
Dmini_bench_local.cc27 int n_threads = 0; in main() local
29 n_threads = 4; in main()
32 n_threads = atoi(argv[1]); in main()
33 assert(n_threads > 0 && n_threads <= 32); in main()
37 __FILE__, n_threads, len, kNumIter); in main()
38 a = new int[n_threads * len]; in main()
39 pthread_t *t = new pthread_t[n_threads]; in main()
40 for (int i = 0; i < n_threads; i++) { in main()
43 for (int i = 0; i < n_threads; i++) { in main()
Dvts_many_threads_bench.cc45 int n_threads, n_iterations; variable
62 int offset = idx * kNumMutexes / n_threads; in Thread()
74 n_threads = 2; in main()
78 n_threads = atoi(argv[1]); in main()
79 assert(n_threads > 0 && n_threads <= 32); in main()
88 __FILE__, n_threads, n_garbage_threads, n_iterations); in main()
90 pthread_barrier_init(&all_threads_ready, NULL, n_garbage_threads + n_threads + 1); in main()
91 pthread_barrier_init(&main_threads_ready, NULL, n_threads + 1); in main()
93 pthread_t *t = new pthread_t[n_threads]; in main()
100 for (int i = 0; i < n_threads; i++) { in main()
[all …]
Dmini_bench_shared.cc27 int n_threads = 0; in main() local
29 n_threads = 4; in main()
32 n_threads = atoi(argv[1]); in main()
33 assert(n_threads > 0 && n_threads <= 32); in main()
37 __FILE__, n_threads, len, kNumIter); in main()
41 pthread_t *t = new pthread_t[n_threads]; in main()
42 for (int i = 0; i < n_threads; i++) { in main()
45 for (int i = 0; i < n_threads; i++) { in main()
Dstart_many_threads.cc25 int n_threads; in main() local
27 n_threads = 100; in main()
29 n_threads = atoi(argv[1]); in main()
34 printf("%s: n_threads=%d\n", __FILE__, n_threads); in main()
36 pthread_barrier_init(&all_threads_ready, NULL, n_threads + 1); in main()
38 pthread_t *t = new pthread_t[n_threads]; in main()
39 for (int i = 0; i < n_threads; i++) { in main()
45 for (int i = 0; i < n_threads; i++) { in main()
/external/valgrind/drd/tests/
Dpth_spinlock.c37 const int n_threads = 10; in main() local
38 pthread_t tid[n_threads]; in main()
43 pthread_barrier_init(&s_barrier, 0, n_threads); in main()
45 for (i = 0; i < n_threads; i++) in main()
47 for (i = 0; i < n_threads; i++) in main()
51 if (s_counter == n_threads * s_iterations) in main()
55 s_counter, n_threads * s_iterations); in main()
Datomic_var.c55 const int n_threads = 2; in main() local
56 pthread_t tid[n_threads]; in main()
61 for (i = 0; i < n_threads; i++) in main()
Dtsan_thread_wrappers_pthread.h504 explicit ThreadPool(int n_threads) in ThreadPool() argument
506 for (int i = 0; i < n_threads; i++) { in ThreadPool()
556 explicit Barrier(int n_threads) {CHECK(0 == pthread_barrier_init(&b_, 0, n_threads));} in Barrier() argument
Dtsan_unittest.cpp5978 const int n_threads = 3; variable
5980 int GLOB[n_threads];
5995 for (int i = 0; i < n_threads; i++) { in Aggregator()
/external/libunwind/src/coredump/
D_UCD_create.c216 unsigned n_threads; in _UCD_create() local
229 n_threads = 0; in _UCD_create()
234 n_threads++; in _UCD_create()
239 ui->n_threads = n_threads; in _UCD_create()
240 ui->threads = malloc(sizeof (void *) * n_threads); in _UCD_create()
242 n_threads = 0; in _UCD_create()
247 ui->threads[n_threads++] = NOTE_DATA (note_hdr); in _UCD_create()
271 if (ui->n_threads == 0) in _UCD_create()
288 return ui->n_threads; in _UCD_get_num_threads()
293 if (n >= 0 && n < ui->n_threads) in _UCD_select_thread()
D_UCD_internal.h94 int n_threads; member
/external/libevent/
Devent_iocp.c105 h = CreateIoCompletionPort((HANDLE)fd, port->port, key, port->n_threads); in event_iocp_port_associate()
188 port->n_threads = n_cpus * 2; in event_iocp_port_launch()
189 port->threads = mm_calloc(port->n_threads, sizeof(HANDLE)); in event_iocp_port_launch()
203 for (i=0; i<port->n_threads; ++i) { in event_iocp_port_launch()
239 for (i=0; i<port->n_threads; ++i) { in event_iocp_notify_all()
Diocp-internal.h81 short n_threads; member
/external/compiler-rt/lib/asan/tests/
Dasan_noinst_test.cc172 const int n_threads = 3000; in TEST() local
174 for (int i = 0; i < n_threads; i++) { in TEST()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_rtl.cc137 uptr n_threads; in MemoryProfiler() local
139 ctx->thread_registry->GetNumberOfThreads(&n_threads, &n_running_threads); in MemoryProfiler()
141 WriteMemoryProfile(buf.data(), buf.size(), n_threads, n_running_threads); in MemoryProfiler()
/external/google-benchmark/include/benchmark/
Dbenchmark_api.h224 State(size_t max_iters, bool has_x, int x, bool has_y, int y, int thread_i, int n_threads);
/external/google-benchmark/src/
Dbenchmark.cc739 int thread_i, int n_threads) in State() argument
745 threads(n_threads), in State()