/external/rust/crates/futures/tests/ |
D | future_join.rs | 9 block_on(async { futures::join!(yield_now(), trouble()) }); in futures_join_macro_self_referential() 16 yield_now().await; in trouble() 22 fn yield_now() -> impl Future<Output = ()> { in yield_now() function
|
/external/rust/crates/tokio/src/task/ |
D | mod.rs | 293 mod yield_now; 294 pub use yield_now::yield_now;
|
D | yield_now.rs | 39 pub async fn yield_now() { in yield_now() function
|
/external/rust/crates/rayon-core/src/thread_pool/ |
D | mod.rs | 350 pub fn yield_now(&self) -> Option<Yield> { in yield_now() method 352 Some(curr.yield_now()) in yield_now() 440 pub fn yield_now() -> Option<Yield> { in yield_now() function 443 Some(thread.yield_now()) in yield_now()
|
/external/rust/crates/tokio/tests/ |
D | io_util_empty.rs | 15 _ = tokio::task::yield_now() => {} in empty_read_is_cooperative() 30 _ = tokio::task::yield_now() => {} in empty_buf_reads_are_cooperative()
|
D | rt_basic.rs | 92 tokio::task::yield_now().await; in no_extra_poll() 100 tokio::task::yield_now().await; in no_extra_poll() 108 tokio::task::yield_now().await; in no_extra_poll() 144 task::yield_now().await; in acquire_mutex_in_drop() 205 tokio::task::yield_now().await; in wake_in_drop_after_panic()
|
D | macros_select.rs | 138 tokio::task::yield_now().await; in select_streams() 141 tokio::task::yield_now().await; in select_streams() 144 tokio::task::yield_now().await; in select_streams() 535 use tokio::task::yield_now; in biased_eventually_ready() 538 let two = async { yield_now().await }; in biased_eventually_ready() 539 let three = async { yield_now().await }; in biased_eventually_ready()
|
D | uds_stream.rs | 90 tokio::task::yield_now().await; in try_read_write() 184 tokio::task::yield_now().await; in try_read_write() 327 tokio::task::yield_now().await; in try_read_buf() 376 tokio::task::yield_now().await; in try_read_buf()
|
D | tcp_stream.rs | 55 tokio::task::yield_now().await; in try_read_write() 149 tokio::task::yield_now().await; in try_read_write() 311 tokio::task::yield_now().await; in try_read_buf() 360 tokio::task::yield_now().await; in try_read_buf()
|
/external/rust/crates/tokio/src/runtime/tests/ |
D | loom_current_thread_scheduler.rs | 17 task::yield_now().await; in assert_at_most_num_polls() 78 task::yield_now().await; in assert_no_unnecessary_polls() 94 task::yield_now().await; in assert_no_unnecessary_polls()
|
D | task.rs | 168 crate::task::yield_now().await; in schedule() 181 crate::task::yield_now().await; in shutdown() 196 crate::task::yield_now().await; in shutdown_immediately() 222 crate::task::yield_now().await; in spawn_during_shutdown()
|
D | loom_pool.rs | 142 task::yield_now().await in only_blocking_inner() 180 task::yield_now().await in blocking_and_regular_inner() 252 task::yield_now().await; in complete_block_on_under_load()
|
D | loom_yield.rs | 18 crate::task::yield_now().await; in yield_calls_park_before_scheduling_again()
|
D | loom_local.rs | 41 ls.block_on(&rt, crate::task::yield_now()); in wake_during_shutdown()
|
/external/rust/crates/tokio/src/runtime/time/tests/ |
D | mod.rs | 63 thread::yield_now(); in single_timer() 98 thread::yield_now(); in drop_timer() 133 thread::yield_now(); in change_waker() 175 thread::yield_now(); in reset_future()
|
/external/rust/crates/rayon-core/src/sleep/ |
D | mod.rs | 111 thread::yield_now(); in no_work_found() 116 thread::yield_now(); in no_work_found() 119 thread::yield_now(); in no_work_found()
|
/external/rust/crates/tokio/src/sync/mpsc/ |
D | list.rs | 177 thread::yield_now(); in find_block() 301 thread::yield_now(); in try_advancing_head() 337 thread::yield_now(); in reclaim_blocks()
|
/external/rust/crates/parking_lot/src/ |
D | rwlock.rs | 245 thread::yield_now(); in test_ruw_arc() 261 thread::yield_now(); in test_ruw_arc() 265 thread::yield_now(); in test_ruw_arc() 301 thread::yield_now(); in test_rw_arc() 558 thread::yield_now(); in test_rwlock_recursive()
|
/external/rust/crates/crossbeam-channel/tests/ |
D | golang.rs | 466 thread::yield_now(); in main() 467 thread::yield_now(); in main() 468 thread::yield_now(); in main() 846 thread::yield_now(); in send1() 853 thread::yield_now(); in send2() 862 thread::yield_now(); in send3() 1458 thread::yield_now(); in test_pseudo_random_send() 1508 thread::yield_now(); in test_multi_consumer() 1748 thread::yield_now(); in send() 1761 thread::yield_now(); in recv() [all …]
|
/external/rust/crates/parking_lot_core/src/thread_parker/ |
D | wasm.rs | 53 thread::yield_now(); in thread_yield()
|
D | generic.rs | 78 thread::yield_now(); in thread_yield()
|
/external/rust/crates/spin/src/ |
D | relax.rs | 47 std::thread::yield_now(); in relax()
|
/external/rust/crates/tokio/src/sync/tests/ |
D | loom_list.rs | 43 thread::yield_now(); in smoke()
|
/external/rust/crates/getrandom/tests/common/ |
D | mod.rs | 57 thread::yield_now(); in test_multithreading()
|
/external/rust/crates/rayon/src/ |
D | lib.rs | 127 pub use rayon_core::{yield_local, yield_now, Yield};
|