Home
last modified time | relevance | path

Searched refs:ThreadPoolBuilder (Results 1 – 25 of 26) sorted by relevance

12

/external/rust/crates/rayon-core/src/thread_pool/
Dtest.rs9 use crate::{join, Scope, ScopeFifo, ThreadPool, ThreadPoolBuilder};
14 let thread_pool = ThreadPoolBuilder::new().build().unwrap(); in panic_propagate()
26 let thread_pool = ThreadPoolBuilder::new().num_threads(22).build().unwrap(); in workers_stop()
55 let thread_pool = ThreadPoolBuilder::new().num_threads(22).build().unwrap(); in sleeper_stop()
103 let builder = ThreadPoolBuilder::new() in failed_thread_stack()
123 let builder = ThreadPoolBuilder::new() in panic_thread_name()
145 let pool = ThreadPoolBuilder::new().num_threads(1).build().unwrap(); in self_install()
153 let pool1 = ThreadPoolBuilder::new().num_threads(1).build().unwrap(); in mutual_install()
154 let pool2 = ThreadPoolBuilder::new().num_threads(1).build().unwrap(); in mutual_install()
174 let pool1 = ThreadPoolBuilder::new().num_threads(1).build().unwrap(); in mutual_install_sleepy()
[all …]
Dmod.rs13 use crate::{ThreadPoolBuildError, ThreadPoolBuilder};
64 builder: ThreadPoolBuilder<S>, in build()
/external/rust/crates/rayon-core/src/
Dtest.rs5 use crate::{ThreadPoolBuildError, ThreadPoolBuilder};
11 let pool = ThreadPoolBuilder::new().num_threads(22).build().unwrap(); in worker_thread_index()
32 let conf = ThreadPoolBuilder::new() in start_callback_called()
58 let conf = ThreadPoolBuilder::new() in exit_callback_called()
100 let conf = ThreadPoolBuilder::new() in handler_panics_handled_correctly()
126 let pool = ThreadPoolBuilder::new().num_threads(22).build().unwrap(); in check_config_build()
161 ThreadPoolBuilder::default().build().unwrap(); in default_pool()
171 let pool = ThreadPoolBuilder::new() in cleared_current_thread()
Dlib.rs118 pub struct ThreadPoolBuilder<S = DefaultSpawn> { struct
154 builder: ThreadPoolBuilder,
172 impl Default for ThreadPoolBuilder { implementation
174 ThreadPoolBuilder { in default()
187 impl ThreadPoolBuilder { implementation
196 impl<S> ThreadPoolBuilder<S> implementation
229 impl ThreadPoolBuilder { impl
297 impl<S> ThreadPoolBuilder<S> { implementation
352 pub fn spawn_handler<F>(self, spawn: F) -> ThreadPoolBuilder<CustomSpawn<F>> in spawn_handler()
356 ThreadPoolBuilder { in spawn_handler()
[all …]
Dregistry.rs9 ErrorKind, ExitHandler, PanicHandler, StartHandler, ThreadPoolBuildError, ThreadPoolBuilder,
169 set_global_registry(|| Registry::new(ThreadPoolBuilder::new())) in global_registry()
177 builder: ThreadPoolBuilder<S>, in init_global_registry()
216 mut builder: ThreadPoolBuilder<S>, in new()
/external/rust/crates/rayon-core/tests/
Ddouble_init_fail.rs1 use rayon_core::ThreadPoolBuilder;
6 let result1 = ThreadPoolBuilder::new().build_global(); in double_init_fail()
8 let err = ThreadPoolBuilder::new().build_global().unwrap_err(); in double_init_fail()
Dscoped_threadpool.rs2 use rayon_core::ThreadPoolBuilder;
12 let pool = ThreadPoolBuilder::new() in missing_scoped_tls()
28 let pool = ThreadPoolBuilder::new() in spawn_scoped_tls_threadpool()
69 ThreadPoolBuilder::new() in build_scoped_tls_threadpool()
Dinit_zero_threads.rs1 use rayon_core::ThreadPoolBuilder;
5 ThreadPoolBuilder::new() in init_zero_threads()
Dstack_overflow_crash.rs1 use rayon_core::ThreadPoolBuilder;
72 let pool = ThreadPoolBuilder::new() in main()
/external/rust/crates/rayon-core/src/spawn/
Dtest.rs7 use crate::ThreadPoolBuilder;
43 let builder = ThreadPoolBuilder::new().panic_handler(panic_handler); in panic_fwd()
64 let thread_pool = ThreadPoolBuilder::new().build().unwrap(); in termination_while_things_are_executing()
95 let builder = ThreadPoolBuilder::new().panic_handler(panic_handler); in custom_panic_handler_and_spawn()
123 let builder = ThreadPoolBuilder::new().panic_handler(panic_handler); in custom_panic_handler_and_nested_spawn()
147 let builder = ThreadPoolBuilder::new().num_threads(1);
215 let builder = ThreadPoolBuilder::new().num_threads(1);
/external/rust/crates/rayon/tests/
Dcross-pool.rs2 use rayon::ThreadPoolBuilder;
6 let pool1 = ThreadPoolBuilder::new().num_threads(1).build().unwrap(); in cross_pool_busy()
7 let pool2 = ThreadPoolBuilder::new().num_threads(1).build().unwrap(); in cross_pool_busy()
Diter_panic.rs2 use rayon::ThreadPoolBuilder;
26 let pool = ThreadPoolBuilder::new().num_threads(1).build().unwrap(); in iter_panic_fuse()
Dnamed-threads.rs8 ThreadPoolBuilder::new() in named_threads()
Doctillion.rs64 let builder = rayon::ThreadPoolBuilder::new().num_threads(2); in two_threads()
/external/rust/crates/futures-executor/src/
Dthread_pool.rs37 pub struct ThreadPoolBuilder { struct
63 impl fmt::Debug for ThreadPoolBuilder { argument
84 ThreadPoolBuilder::new().create() in new()
92 pub fn builder() -> ThreadPoolBuilder { in builder()
93 ThreadPoolBuilder::new() in builder()
187 impl ThreadPoolBuilder { implementation
294 impl Default for ThreadPoolBuilder { implementation
373 let _cpu_pool = ThreadPoolBuilder::new() in test_drop_after_start()
Dlib.rs64 pub use crate::thread_pool::{ThreadPool, ThreadPoolBuilder};
/external/rust/crates/rayon-core/src/join/
Dtest.rs5 use crate::ThreadPoolBuilder;
54 let pool = ThreadPoolBuilder::new().build().unwrap(); in sort_in_pool()
99 let pool = ThreadPoolBuilder::new().num_threads(1).build().unwrap(); in join_context_neither()
112 let pool = ThreadPoolBuilder::new().num_threads(2).build().unwrap(); in join_context_second()
135 let pool = ThreadPoolBuilder::new().num_threads(2).build().unwrap(); in join_counter_overflow()
/external/rust/crates/syn/tests/common/
Dmod.rs3 use rayon::ThreadPoolBuilder;
23 ThreadPoolBuilder::new() in rayon_init()
/external/rust/crates/rayon-core/src/scope/
Dtest.rs2 use crate::ThreadPoolBuilder;
152 let builder = ThreadPoolBuilder::new().num_threads(1); in linear_stack_growth()
273 let builder = ThreadPoolBuilder::new().num_threads(1);
313 let builder = ThreadPoolBuilder::new().num_threads(1);
384 let builder = ThreadPoolBuilder::new().num_threads(1);
/external/rust/crates/rayon/src/
Dlib.rs115 pub use rayon_core::ThreadPoolBuilder;
Drange_inclusive.rs279 use crate::ThreadPoolBuilder; in test_usize_i64_overflow()
286 let pool = ThreadPoolBuilder::new().num_threads(8).build().unwrap(); in test_usize_i64_overflow()
Drange.rs359 use crate::ThreadPoolBuilder; in test_usize_i64_overflow()
366 let pool = ThreadPoolBuilder::new().num_threads(8).build().unwrap(); in test_usize_i64_overflow()
/external/rust/crates/rayon/
DRELEASES.md165 - `ThreadPoolBuilder` can now take a custom `spawn_handler` to control how
167 - `ThreadPoolBuilder::build_scoped()` uses this to create a scoped thread
283 - The new `ThreadPoolBuilder` replaces and deprecates `Configuration`.
286 - `ThreadPool::new` is deprecated in favor of `ThreadPoolBuilder::build`.
287 - `initialize` is deprecated in favor of `ThreadPoolBuilder::build_global`.
DFAQ.md15 [`ThreadPoolBuilder::build_global` function](https://docs.rs/rayon/*/rayon/struct.ThreadPoolBuilder
/external/rust/crates/rayon/src/iter/
Dtest.rs476 let pool = ThreadPoolBuilder::new().num_threads(1).build().unwrap(); in check_cmp_short_circuit()
505 let pool = ThreadPoolBuilder::new().num_threads(1).build().unwrap(); in check_partial_cmp_short_circuit()
534 let pool = ThreadPoolBuilder::new().num_threads(1).build().unwrap(); in check_partial_cmp_nan_short_circuit()
2104 let pool = ThreadPoolBuilder::new().num_threads(1).build().unwrap(); in check_repeat_unbounded()

12