Home
last modified time | relevance | path

Searched refs:N_THREADS (Results 1 – 9 of 9) sorted by relevance

/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/scheduling/
DCoroutineSchedulerCloseStressTest.kt28 private val N_THREADS = 4 constant in kotlinx.coroutines.scheduling.CoroutineSchedulerCloseStressTest
56 closeableDispatcher = ExperimentalCoroutineDispatcher(N_THREADS) in <lambda>()
59 … Mode.CPU_LIMITED -> closeableDispatcher.limited(N_THREADS) as ExecutorCoroutineDispatcher in <lambda>()
60 Mode.BLOCKING -> closeableDispatcher.blocking(N_THREADS) as ExecutorCoroutineDispatcher in <lambda>()
/external/rust/crates/once_cell/examples/
Dbench.rs5 const N_THREADS: usize = 32; constant
13 (0..N_THREADS).map(|i| std::thread::spawn(move || thread_main(i))).collect::<Vec<_>>(); in main()
26 assert!(value < N_THREADS) in thread_main()
Dbench_vs_lazy_static.rs4 const N_THREADS: usize = 32; constant
16 let threads = (0..N_THREADS) in main()
26 let threads = (0..N_THREADS) in main()
Dtest_synchronization.rs12 const N_THREADS: usize = 32; constant
22 (0..N_THREADS).map(|i| std::thread::spawn(move || thread_main(i))).collect::<Vec<_>>(); in main()
Dbench_acquire.rs8 const N_THREADS: usize = 16; constant
17 (0..N_THREADS).map(|i| std::thread::spawn(move || thread_main(i))).collect::<Vec<_>>(); in main()
/external/rust/crates/protobuf/src/
Dlazy_v2.rs45 const N_THREADS: usize = 32; in many_threads_calling_get() constant
63 let barrier = Arc::new(Barrier::new(N_THREADS)); in many_threads_calling_get()
65 for _ in 0..N_THREADS { in many_threads_calling_get()
Dlazy.rs68 const N_THREADS: usize = 32; in many_threads_calling_get() constant
86 let barrier = Arc::new(Barrier::new(N_THREADS)); in many_threads_calling_get()
88 for _ in 0..N_THREADS { in many_threads_calling_get()
/external/python/cpython2/Lib/test/
Dtest_gc.py314 N_THREADS = 2
359 for i in range(N_THREADS):
/external/python/cpython3/Lib/test/
Dtest_gc.py370 N_THREADS = 2
415 for i in range(N_THREADS):