Home
last modified time | relevance | path

Searched refs:NTHREADS (Results 1 – 21 of 21) sorted by relevance

/external/jemalloc_new/test/unit/
Dmtx.c3 #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()
Dprof_thread_name.c71 #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
Dprof_accum.c3 #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()
Dprof_reset.c133 #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
Drtree.c82 #undef NTHREADS
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sigwait/
D6-1.c78 #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()
D6-2.c77 #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/
Dstress.c72 #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/
Dstress.c72 #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/
D1-3.c72 #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/
DMALLOCX_ARENA.c3 #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()
Dthread_arena.c3 #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/
Dthread1-test.c5 #define NTHREADS 10 macro
33 for (i = 0; i < NTHREADS; i++) { in main()
37 for (i = 0; i < NTHREADS; i++) { in main()
Dtlocal-test.c5 #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/
Dtest_locks.py58 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/
D1-2.c72 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/
D2-5.c57 #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/
D2-1.c73 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/
Dmpsc.rs204 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/
Dstress.c73 #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/
Dmpsc.rs332 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 …]