/external/jemalloc_new/test/unit/ |
D | mtx.c | 3 #define NTHREADS 2 macro 36 thd_t thds[NTHREADS]; in TEST_BEGIN() 41 for (i = 0; i < NTHREADS; i++) { in TEST_BEGIN() 44 for (i = 0; i < NTHREADS; i++) { in TEST_BEGIN() 47 assert_u_eq(arg.x, NTHREADS * NINCRS, in TEST_BEGIN()
|
D | prof_thread_name.c | 71 #define NTHREADS 4 macro 97 thd_t thds[NTHREADS]; in TEST_BEGIN() 98 unsigned thd_args[NTHREADS]; in TEST_BEGIN() 103 for (i = 0; i < NTHREADS; i++) { in TEST_BEGIN() 107 for (i = 0; i < NTHREADS; i++) { in TEST_BEGIN() 112 #undef NTHREADS
|
D | prof_accum.c | 3 #define NTHREADS 4 macro 54 thd_t thds[NTHREADS]; in TEST_BEGIN() 55 unsigned thd_args[NTHREADS]; in TEST_BEGIN() 67 for (i = 0; i < NTHREADS; i++) { in TEST_BEGIN() 71 for (i = 0; i < NTHREADS; i++) { in TEST_BEGIN()
|
D | prof_reset.c | 133 #define NTHREADS 4 macro 184 thd_t thds[NTHREADS]; in TEST_BEGIN() 185 unsigned thd_args[NTHREADS]; in TEST_BEGIN() 201 for (i = 0; i < NTHREADS; i++) { in TEST_BEGIN() 205 for (i = 0; i < NTHREADS; i++) { in TEST_BEGIN() 219 #undef NTHREADS
|
D | rtree.c | 82 #undef NTHREADS
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigwait/ |
D | 6-1.c | 78 #define NTHREADS 5 macro 112 pthread_t ch[NTHREADS]; in main() 138 for (i = 0; i < NTHREADS; i++) { in main() 161 for (; n_awaken < NTHREADS; sched_yield()) { in main() 170 for (i = 0; i < NTHREADS; i++) { in main()
|
D | 6-2.c | 77 #define NTHREADS 5 macro 114 pthread_t ch[NTHREADS]; in main() 140 for (i = 0; i < NTHREADS; i++) { in main() 167 for (i = 1; i < NTHREADS; i++) { in main() 176 for (i = 0; i < NTHREADS; i++) { in main()
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_cancel/ |
D | stress.c | 72 #define NTHREADS 30 macro 166 pthread_t th[NTHREADS]; in main() 167 pthread_barrier_t b[NTHREADS]; in main() 191 for (i = 0; i < NTHREADS; i++) { in main() 205 for (i = 0; i < NTHREADS; i++) { in main()
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_once/ |
D | stress.c | 72 #define NTHREADS 30 macro 145 pthread_t th[NTHREADS]; in main() 151 ret = pthread_barrier_init(&bar, NULL, NTHREADS); in main() 183 for (i = 0; i < NTHREADS; i++) { in main() 192 for (i = 0; i < NTHREADS; i++) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_once/ |
D | 1-3.c | 72 #define NTHREADS 30 macro 122 pthread_t th[NTHREADS]; in main() 131 for (i = 0; i < NTHREADS; i++) { in main() 140 for (i = 0; i < NTHREADS; i++) { in main()
|
/external/jemalloc_new/test/integration/ |
D | MALLOCX_ARENA.c | 3 #define NTHREADS 10 macro 48 thd_t thds[NTHREADS]; in TEST_BEGIN() 51 for (i = 0; i < NTHREADS; i++) { in TEST_BEGIN() 56 for (i = 0; i < NTHREADS; i++) { in TEST_BEGIN()
|
D | thread_arena.c | 3 #define NTHREADS 10 macro 51 thd_t thds[NTHREADS]; in TEST_BEGIN() 68 for (i = 0; i < NTHREADS; i++) { in TEST_BEGIN() 73 for (i = 0; i < NTHREADS; i++) { in TEST_BEGIN()
|
/external/python/cffi/testing/embedding/ |
D | thread1-test.c | 5 #define NTHREADS 10 macro 33 for (i = 0; i < NTHREADS; i++) { in main() 37 for (i = 0; i < NTHREADS; i++) { in main()
|
D | tlocal-test.c | 5 #define NTHREADS 10 macro 37 for (i = 0; i < NTHREADS; i++) { in main() 41 for (i = 0; i < NTHREADS; i++) { in main()
|
/external/python/cpython3/Lib/test/test_importlib/ |
D | test_locks.py | 58 NTHREADS = NLOCKS 60 NTHREADS = NLOCKS - 1 61 barrier = threading.Barrier(NTHREADS) 84 lock_tests.Bunch(f, NTHREADS).wait_for_finished() 85 self.assertEqual(len(results), NTHREADS)
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_signal/ |
D | 1-2.c | 72 for (_nch=0; _nch<NTHREADS; _nch++) \ 81 for (_nch=0; _nch<NTHREADS; _nch++) \ 93 #define NTHREADS (20) macro 293 pid_t p_child[NTHREADS]; in main() 294 pthread_t t_child[NTHREADS]; in main() 489 for (ch = 0; ch < NTHREADS; ch++) { in main() 525 while (ch < NTHREADS) { in main() 574 for (ch = (NTHREADS - 1); ch >= 0; ch--) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_timedwait/ |
D | 2-5.c | 57 #define NTHREADS (100) macro 170 pthread_t th[NTHREADS]; in main() 302 for (j = 0; j < NTHREADS; j++) { in main() 320 } while (loc_started < NTHREADS); in main() 337 } while (loc_stopped < NTHREADS); in main() 340 for (j = 0; j < NTHREADS; j++) { in main()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_destroy/ |
D | 2-1.c | 73 for (_nch=0; _nch<NTHREADS; _nch++) \ 82 for (_nch=0; _nch<NTHREADS; _nch++) \ 94 #define NTHREADS (5) macro 335 pid_t p_child[NTHREADS]; in main() 336 pthread_t t_child[NTHREADS]; in main() 534 for (ch = 0; ch < NTHREADS; ch++) { in main() 570 while (ch < NTHREADS) { in main() 671 while (ch < NTHREADS) { in main() 728 for (ch = (NTHREADS - 1); ch >= 0; ch--) { in main()
|
/external/rust/crates/futures-channel/tests/ |
D | mpsc.rs | 204 const NTHREADS: u32 = 8; in stress_shared_unbounded() constant 209 assert_eq!(result.len(), (AMT * NTHREADS) as usize); in stress_shared_unbounded() 215 for _ in 0..NTHREADS { in stress_shared_unbounded() 233 const NTHREADS: u32 = 8; in stress_shared_bounded_hard() constant 238 assert_eq!(result.len(), (AMT * NTHREADS) as usize); in stress_shared_bounded_hard() 244 for _ in 0..NTHREADS { in stress_shared_bounded_hard() 263 const NTHREADS: u32 = 2; in stress_receiver_multi_task_bounded_hard() constant 271 for _ in 0..NTHREADS { in stress_receiver_multi_task_bounded_hard() 402 const NTHREADS: u32 = 8; in stress_poll_ready() constant 408 for _ in 0..NTHREADS { in stress_poll_ready() [all …]
|
/external/ltp/testcases/open_posix_testsuite/stress/threads/pthread_getschedparam/ |
D | stress.c | 73 #define NTHREADS 30 macro 159 pthread_t th[NTHREADS]; in main() 264 for (i = 0; i < NTHREADS; i++) { in main() 273 for (i = 0; i < NTHREADS; i++) { in main()
|
/external/rust/crates/crossbeam-channel/tests/ |
D | mpsc.rs | 332 const NTHREADS: u32 = 8; in stress_shared() constant 336 for _ in 0..AMT * NTHREADS { in stress_shared() 345 let mut ts = Vec::with_capacity(NTHREADS as usize); in stress_shared() 346 for _ in 0..NTHREADS { in stress_shared() 1123 const NTHREADS: u32 = 8; in stress_recv_timeout_shared() constant 1140 assert_eq!(recv_count, AMT * NTHREADS); in stress_recv_timeout_shared() 1146 let mut ts = Vec::with_capacity(NTHREADS as usize); in stress_recv_timeout_shared() 1147 for _ in 0..NTHREADS { in stress_recv_timeout_shared() 1169 const NTHREADS: u32 = 8; in stress_shared() constant 1174 for _ in 0..AMT * NTHREADS { in stress_shared() [all …]
|