Home
last modified time | relevance | path

Searched refs:yield_now (Results 1 – 25 of 76) sorted by relevance

1234

/external/rust/crates/futures/tests/
Dfuture_join.rs9 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/
Dmod.rs293 mod yield_now;
294 pub use yield_now::yield_now;
Dyield_now.rs39 pub async fn yield_now() { in yield_now() function
/external/rust/crates/rayon-core/src/thread_pool/
Dmod.rs350 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/
Dio_util_empty.rs15 _ = tokio::task::yield_now() => {} in empty_read_is_cooperative()
30 _ = tokio::task::yield_now() => {} in empty_buf_reads_are_cooperative()
Drt_basic.rs92 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()
Dmacros_select.rs138 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()
Duds_stream.rs90 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()
Dtcp_stream.rs55 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/
Dloom_current_thread_scheduler.rs17 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()
Dtask.rs168 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()
Dloom_pool.rs142 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()
Dloom_yield.rs18 crate::task::yield_now().await; in yield_calls_park_before_scheduling_again()
Dloom_local.rs41 ls.block_on(&rt, crate::task::yield_now()); in wake_during_shutdown()
/external/rust/crates/tokio/src/runtime/time/tests/
Dmod.rs63 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/
Dmod.rs111 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/
Dlist.rs177 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/
Drwlock.rs245 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/
Dgolang.rs466 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/
Dwasm.rs53 thread::yield_now(); in thread_yield()
Dgeneric.rs78 thread::yield_now(); in thread_yield()
/external/rust/crates/spin/src/
Drelax.rs47 std::thread::yield_now(); in relax()
/external/rust/crates/tokio/src/sync/tests/
Dloom_list.rs43 thread::yield_now(); in smoke()
/external/rust/crates/getrandom/tests/common/
Dmod.rs57 thread::yield_now(); in test_multithreading()
/external/rust/crates/rayon/src/
Dlib.rs127 pub use rayon_core::{yield_local, yield_now, Yield};

1234