Home
last modified time | relevance | path

Searched refs:kThreads (Results 1 – 14 of 14) sorted by relevance

/external/eigen/unsupported/test/
Dcxx11_non_blocking_thread_pool.cpp28 const int kThreads = 16; // code below expects that this is a multiple of 4 in test_parallelism() local
29 NonBlockingThreadPool tp(kThreads); in test_parallelism()
30 VERIFY_IS_EQUAL(tp.NumThreads(), kThreads); in test_parallelism()
37 for (int i = 0; i < kThreads; ++i) { in test_parallelism()
41 VERIFY_LE(thread_id, kThreads - 1); in test_parallelism()
48 while (running != kThreads) { in test_parallelism()
54 for (int i = 0; i < kThreads; ++i) { in test_parallelism()
64 if (i < kThreads / 2) { in test_parallelism()
65 } else if (i < 3 * kThreads / 4) { in test_parallelism()
83 while (running != kThreads) { in test_parallelism()
[all …]
Dcxx11_eventcount.cpp81 const int kThreads = std::thread::hardware_concurrency(); in test_stress_eventcount() local
85 MaxSizeVector<EventCount::Waiter> waiters(kThreads); in test_stress_eventcount()
86 waiters.resize(kThreads); in test_stress_eventcount()
91 for (int i = 0; i < kThreads; i++) { in test_stress_eventcount()
107 for (int i = 0; i < kThreads; i++) { in test_stress_eventcount()
132 for (int i = 0; i < kThreads; i++) { in test_stress_eventcount()
/external/compiler-rt/lib/tsan/tests/unit/
Dtsan_mutex_test.cc65 const int kThreads = 8; variable
99 pthread_t threads[kThreads]; in TEST()
100 for (int i = 0; i < kThreads; i++) in TEST()
102 for (int i = 0; i < kThreads; i++) in TEST()
109 pthread_t threads[kThreads]; in TEST()
110 for (int i = 0; i < kThreads; i++) in TEST()
112 for (int i = 0; i < kThreads; i++) in TEST()
119 pthread_t threads[kThreads]; in TEST()
120 for (int i = 0; i < kThreads; i++) in TEST()
122 for (int i = 0; i < kThreads; i++) in TEST()
Dtsan_clock_test.cc215 const uptr kThreads = 4; variable
221 u64 clock[kThreads];
230 for (uptr i = 0; i < kThreads; i++) in Reset()
250 u64 clock[kThreads];
257 for (uptr i = 0; i < kThreads; i++) in SimpleThreadClock()
268 for (uptr i = 0; i < kThreads; i++) in acquire()
275 for (uptr i = 0; i < kThreads; i++) in release()
287 for (uptr i = 0; i < kThreads; i++) in ReleaseStore()
308 SimpleThreadClock *thr0[kThreads]; in ClockFuzzer()
309 ThreadClock *thr1[kThreads]; in ClockFuzzer()
[all …]
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_mutex_test.cc70 const int kThreads = 8; variable
107 pthread_t threads[kThreads]; in TEST()
108 for (int i = 0; i < kThreads; i++) in TEST()
110 for (int i = 0; i < kThreads; i++) in TEST()
118 pthread_t threads[kThreads]; in TEST()
119 for (int i = 0; i < kThreads; i++) in TEST()
121 for (int i = 0; i < kThreads; i++) in TEST()
129 pthread_t threads[kThreads]; in TEST()
130 for (int i = 0; i < kThreads; i++) in TEST()
132 for (int i = 0; i < kThreads; i++) in TEST()
/external/compiler-rt/test/tsan/
Drace_stress.cc4 const int kThreads = 16; variable
16 pthread_t th[kThreads]; in main()
17 for (int i = 0; i < kThreads; i++) in main()
19 for (int i = 0; i < kThreads; i++) in main()
Dlots_of_threads.c13 const int kThreads = 10; in main() local
14 barrier_init(&barrier, kThreads + 1); in main()
15 pthread_t t[kThreads]; in main()
20 for (int i = 0; i < kThreads; i++) in main()
Dsignal_sync.cc24 const int kThreads = 10; in main() local
25 pthread_t th[kThreads]; in main()
26 for (int i = 0; i < kThreads; i++) in main()
47 for (int i = 0; i < kThreads; i++) in main()
Dreal_deadlock_detector_stress_test.cc13 const int kThreads = 4; variable
176 pthread_t t[kThreads]; in main()
177 for (int i = 0; i < kThreads; i++) in main()
179 for (int i = 0; i < kThreads; i++) in main()
/external/compiler-rt/test/msan/
Dfork.cc64 const int kThreads = 10; in test() local
65 pthread_t t[kThreads]; in test()
66 for (int i = 0; i < kThreads; ++i) in test()
/external/compiler-rt/lib/tsan/tests/rtl/
Dtsan_posix.cc81 const int kThreads = 4; in local_thread() local
82 pthread_t th[kThreads]; in local_thread()
83 for (int i = 0; i < kThreads; i++) in local_thread()
86 for (int i = 0; i < kThreads; i++) in local_thread()
Dtsan_thread.cc48 const int kThreads = 70000; in TEST() local
51 for (int i = 0; i < kThreads; i++) { in TEST()
/external/libvpx/libvpx/test/
Dtest_vector_test.cc34 const int kThreads = 0; variable
99 cfg.threads = std::get<kThreads>(input); in TEST_P()
/external/libaom/libaom/test/
Dtest_vector_test.cc32 const int kThreads = 0; variable
112 cfg.threads = ::testing::get<kThreads>(input); in TEST_P()