HomeSort by relevance Sort by last modified time
    Searched full:n_threads (Results 1 - 19 of 19) sorted by null

  /external/compiler-rt/lib/tsan/benchmarks/
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...]
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...]
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...]
  /external/valgrind/main/drd/tests/
pth_spinlock.c 37 const int n_threads = 10; local
38 pthread_t tid[n_threads];
43 pthread_barrier_init(&s_barrier, 0, n_threads);
45 for (i = 0; i < n_threads; i++)
47 for (i = 0; i < n_threads; i++)
51 if (s_counter == n_threads * s_iterations)
55 s_counter, n_threads * s_iterations);
atomic_var.c 55 const int n_threads = 2; local
56 pthread_t tid[n_threads];
61 for (i = 0; i < n_threads; i++)
tsan_thread_wrappers_pthread.h 503 //! Create n_threads threads, but do not start.
504 explicit ThreadPool(int n_threads)
506 for (int i = 0; i < n_threads; i++) {
556 explicit Barrier(int n_threads) {CHECK(0 == pthread_barrier_init(&b_, 0, n_threads));}
tsan_unittest.cpp 5974 const int n_threads = 3; member in namespace:test125
    [all...]
  /external/valgrind/main/helgrind/tests/
tc24_nonzero_sem.c 13 #define N_THREADS 3
30 pthread_t child[N_THREADS];
32 sem= my_sem_init("sem1", 0, N_THREADS); assert(sem);
34 for (i = 0; i < N_THREADS; i++) {
39 for (i = 0; i < N_THREADS; i++) {
  /system/extras/tests/bionic/libc/common/
test_pthread_once.c 33 #define N_THREADS 100
65 pthread_t threads[N_THREADS];
68 for (nn = 0; nn < N_THREADS; nn++) {
75 for (nn = 0; nn < N_THREADS; nn++) {
  /external/valgrind/unittest/
thread_wrappers.h 233 //! Create n_threads threads, but do not start.
234 explicit ThreadPool(int n_threads)
236 for (int i = 0; i < n_threads; i++) {
racecheck_unittest.cc     [all...]
bigtest.cc 50 N_THREADS,
688 goals.SetParameterStat(N_THREADS, &nThreads_double, 1);
700 REGISTER_STAT_NAME(N_THREADS);
712 const char *default_goals[] = {"N_THREADS=20", "N_MEM_ACCESSES_K=130000",
768 // Start (N_THREADS - 1) new threads...
thread_wrappers_pthread.h 366 explicit Barrier(int n_threads) {CHECK(0 == pthread_barrier_init(&b_, 0, n_threads));}
posix_tests.cc 454 const int n_threads = 3; member in namespace:test125
456 int GLOB[n_threads];
463 CHECK(my_num < n_threads);
473 for (int i = 0; i < n_threads; i++) {
  /external/compiler-rt/lib/tsan/rtl/
tsan_rtl.cc 102 uptr n_threads; local
104 ctx->thread_registry->GetNumberOfThreads(&n_threads, &n_running_threads);
107 i, n_threads, n_running_threads);
  /external/compiler-rt/lib/asan/tests/
asan_noinst_test.cc 296 const int n_threads = 3000; local
298 for (int i = 0; i < n_threads; i++) {
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_gc.py 312 N_THREADS = 2
357 for i in range(N_THREADS):
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_gc.py 312 N_THREADS = 2
357 for i in range(N_THREADS):

Completed in 1084 milliseconds