Home
last modified time | relevance | path

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

123

/external/rust/crates/tokio/src/task/
Dmod.rs286 mod yield_now;
287 pub use yield_now::yield_now;
Dyield_now.rs16 pub async fn yield_now() {
/external/rust/crates/tokio/tests/
Drt_basic.rs79 tokio::task::yield_now().await; in no_extra_poll()
87 tokio::task::yield_now().await; in no_extra_poll()
95 tokio::task::yield_now().await; in no_extra_poll()
131 task::yield_now().await; in acquire_mutex_in_drop()
Dmacros_select.rs127 task::yield_now().await; in select_streams()
130 task::yield_now().await; in select_streams()
133 task::yield_now().await; in select_streams()
511 use tokio::task::yield_now; in biased_eventually_ready()
514 let two = async { yield_now().await }; in biased_eventually_ready()
515 let three = async { yield_now().await }; in biased_eventually_ready()
Dtcp_stream.rs55 tokio::task::yield_now().await; in try_read_write()
104 tokio::task::yield_now().await; in try_read_write()
262 tokio::task::yield_now().await; in try_read_buf()
311 tokio::task::yield_now().await; in try_read_buf()
Duds_stream.rs90 tokio::task::yield_now().await; in try_read_write()
139 tokio::task::yield_now().await; in try_read_write()
282 tokio::task::yield_now().await; in try_read_buf()
331 tokio::task::yield_now().await; in try_read_buf()
Dtask_local_set.rs91 task::yield_now().await; in localset_future_drives_all_local_futs()
94 task::yield_now().await; in localset_future_drives_all_local_futs()
98 task::yield_now().await; in localset_future_drives_all_local_futs()
486 task::yield_now().await; in acquire_mutex_in_drop()
Dtask_abort.rs88 tokio::task::yield_now().await; in test_abort_without_panic_3662()
/external/rust/crates/tokio/src/time/driver/tests/
Dmod.rs61 thread::yield_now(); in single_timer()
94 thread::yield_now(); in drop_timer()
127 thread::yield_now(); in change_waker()
170 thread::yield_now(); in reset_future()
/external/rust/crates/tokio/src/sync/mpsc/
Dlist.rs165 thread::yield_now(); in find_block()
269 thread::yield_now(); in try_advancing_head()
305 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()
552 thread::yield_now(); in test_rwlock_recursive()
/external/rust/crates/rayon-core/src/sleep/
Dmod.rs109 thread::yield_now(); in no_work_found()
114 thread::yield_now(); in no_work_found()
117 thread::yield_now(); in no_work_found()
/external/rust/crates/rayon/src/iter/
Dpar_bridge.rs5 use std::thread::yield_now;
187 yield_now(); //TODO: use a thread=pool-aware yield? (#548) in fold_with()
/external/rust/crates/tokio/src/runtime/tests/
Dloom_pool.rs91 task::yield_now().await in only_blocking_inner()
129 task::yield_now().await in blocking_and_regular_inner()
218 task::yield_now().await; in complete_block_on_under_load()
Dtask.rs17 crate::task::yield_now().await; in schedule()
31 crate::task::yield_now().await; in shutdown()
/external/rust/crates/parking_lot_core/src/thread_parker/
Dwasm.rs53 thread::yield_now(); in thread_yield()
Dgeneric.rs77 thread::yield_now(); in thread_yield()
Dsgx.rs93 thread::yield_now(); in thread_yield()
/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/spin/src/
Dlib.rs62 use std::thread::yield_now as relax;
/external/rust/crates/futures/tests/
Datomic_waker.rs43 thread::yield_now(); in basic()
/external/rust/crates/tokio/src/runtime/task/
Dcore.rs172 pub(super) fn yield_now(&self, task: Notified<S>) { in yield_now() method
177 Some(scheduler) => scheduler.yield_now(task), in yield_now()
/external/rust/crates/crossbeam-channel/tests/
Dgolang.rs430 thread::yield_now(); in main()
431 thread::yield_now(); in main()
432 thread::yield_now(); in main()
804 thread::yield_now(); in send1()
811 thread::yield_now(); in send2()
820 thread::yield_now(); in send3()
1382 thread::yield_now(); in test_pseudo_random_send()
1429 thread::yield_now(); in test_multi_consumer()
/external/rust/crates/crossbeam-utils/src/
Dbackoff.rs226 ::std::thread::yield_now(); in snooze()

123