/external/compiler-rt/lib/tsan/benchmarks/ |
D | mini_bench_local.cc | 27 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()
|
D | vts_many_threads_bench.cc | 45 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 …]
|
D | mini_bench_shared.cc | 27 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()
|
D | start_many_threads.cc | 25 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/ |
D | pth_spinlock.c | 37 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()
|
D | atomic_var.c | 55 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()
|
D | tsan_thread_wrappers_pthread.h | 504 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
|
D | tsan_unittest.cpp | 5978 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.c | 216 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.h | 94 int n_threads; member
|
/external/libevent/ |
D | event_iocp.c | 105 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()
|
D | iocp-internal.h | 81 short n_threads; member
|
/external/compiler-rt/lib/asan/tests/ |
D | asan_noinst_test.cc | 172 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/ |
D | tsan_rtl.cc | 137 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/ |
D | benchmark_api.h | 224 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/ |
D | benchmark.cc | 739 int thread_i, int n_threads) in State() argument 745 threads(n_threads), in State()
|