Home
last modified time | relevance | path

Searched refs:run_until (Results 1 – 22 of 22) sorted by relevance

/external/crosvm/cros_async/src/
Dio_ext.rs195 let handle = thread::spawn(move || uring_ex.run_until(quit)); in await_uring_from_poll()
198 poll_ex.run_until(go(source)).unwrap(); in await_uring_from_poll()
226 let handle = thread::spawn(move || poll_ex.run_until(quit)); in await_poll_from_uring()
229 uring_ex.run_until(go(source)).unwrap(); in await_poll_from_uring()
250 uring_ex.run_until(go(uring_source)).unwrap(); in readvec()
255 poll_ex.run_until(go(poll_source)).unwrap(); in readvec()
272 ex.run_until(go(uring_source)).unwrap(); in writevec()
277 poll_ex.run_until(go(poll_source)).unwrap(); in writevec()
312 ex.run_until(go(uring_source)).unwrap(); in readmem()
317 poll_ex.run_until(go(poll_source)).unwrap(); in readmem()
[all …]
During_source.rs268 assert_eq!(8192, ex.run_until(fut).unwrap().unwrap()); in read_to_mem()
291 ex.run_until(go(&ex)).unwrap(); in readvec()
309 ex.run_until(go(&ex)).unwrap(); in readmulti()
328 assert_eq!(0u64, ex.run_until(read_u64(&source)).unwrap()); in u64_from_file()
364 ex.run_until(futures::future::join(read_task, write_task)) in event()
391 ex.run_until(do_test(&ex)).unwrap(); in pend_on_pipe()
441 ex.run_until(go(&ex)).unwrap(); in readmem()
465 ex.run_until(go(&ex)).unwrap(); in range_error()
498 ex.run_until(go(&ex)).unwrap(); in fallocate()
510 ex.run_until(go(&ex)).unwrap(); in fsync()
[all …]
Devent.rs55 let val = ex.run_until(go(eventfd, &ex)).unwrap(); in next_val_reads_value()
69 .run_until(go(EventAsync::new_uring(eventfd, &uring_ex).unwrap())) in next_val_reads_value_poll_and_ring()
77 .run_until(go(EventAsync::new_poll(eventfd, &poll_ex).unwrap())) in next_val_reads_value_poll_and_ring()
Dexecutor.rs299 pub fn run_until<F: Future>(&self, f: F) -> AsyncResult<F::Output> { in run_until() method
301 Executor::Uring(ex) => Ok(ex.run_until(f)?), in run_until()
302 Executor::Fd(ex) => Ok(ex.run_until(f).map_err(PollError::Executor)?), in run_until()
Dtimer.rs74 ex.run_until(this_test(&ex)).unwrap(); in one_shot()
97 ex.run_until(this_test(&ex)).unwrap(); in one_shot_fd()
Dpoll_source.rs324 ex.run_until(go(&ex)).unwrap(); in readvec()
341 ex.run_until(go(&ex)).unwrap(); in writevec()
364 ex.run_until(go(&ex)).unwrap(); in fallocate()
Dlib.rs156 .and_then(|ex| ex.run_until(fut)) in run_one_uring()
172 .and_then(|ex| ex.run_until(fut)) in run_one_poll()
During_executor.rs745 pub fn run_until<F: Future>(&self, f: F) -> Result<F::Output> { in run_until() method
898 ex.run_until(UringQueueEmpty { ex: &ex }) in dont_drop_backing_mem_read()
939 ex.run_until(UringQueueEmpty { ex: &ex }) in dont_drop_backing_mem_write()
978 ex.run_until(check_result(write_task, 8)) in canceled_before_completion()
1032 let t = thread::spawn(move || ex2.run_until(async {})); in drop_on_different_thread()
Dfd_executor.rs489 pub fn run_until<F: Future>(&self, f: F) -> Result<F::Output> { in run_until() method
540 ex.run_until(do_test(&ex)).unwrap(); in test_it()
/external/rust/crates/tokio/tests/
Dtask_local_set.rs22 .run_until(async { in local_basic_scheduler()
37 .run_until(async { in local_threadpool()
118 .run_until(async { in local_threadpool_timer()
165 .run_until(async { in local_threadpool_blocking_run()
194 .run_until(async { in all_spawns_are_local()
219 .run_until(async { in nested_spawn_is_local()
399 rt.block_on(set.run_until(join_all(handles))); in local_tasks_wake_join_all()
416 .run_until(async { in local_tasks_are_polled_after_tick()
485 .run_until(async { in acquire_mutex_in_drop()
498 _ = local.run_until(pending::<()>()).fuse() => unreachable!(), in spawn_wakes_localset()
Dasync_send_sync.rs302 async_assert_fn!(tokio::task::LocalSet::run_until(_, BoxFutureSync<()>): !Send & !Sync);
/external/rust/crates/tokio/src/task/
Dlocal.rs459 rt.block_on(self.run_until(future)) in block_on()
490 pub async fn run_until<F>(&self, future: F) -> F::Output in run_until() method
494 let run_until = RunUntil { in run_until() localVariable
498 run_until.await in run_until()
/external/rust/crates/futures-executor/src/
Dlocal_pool.rs171 pub fn run_until<F: Future>(&mut self, future: F) -> F::Output { in run_until() method
358 LocalPool::new().run_until(self.stream.next()) in next()
/external/rust/crates/futures-executor/tests/
Dlocal_pool.rs36 pool.run_until(fut); in run_until_single_future()
47 pool.run_until(lazy(|_| ())); in run_until_ignores_spawned()
58 pool.run_until(rx).unwrap(); in run_until_executes_spawned()
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_events.py394 test_utils.run_until(self.loop, lambda: len(bytes_read) >= 3)
396 test_utils.run_until(self.loop, lambda: len(bytes_read) >= 6)
457 test_utils.run_until(self.loop, lambda: caught)
788 test_utils.run_until(self.loop, lambda: proto.nbytes > 0)
856 test_utils.run_until(self.loop, lambda: proto.nbytes > 0)
918 test_utils.run_until(self.loop, lambda: proto.nbytes > 0)
952 test_utils.run_until(self.loop, lambda: proto.nbytes > 0)
1242 test_utils.run_until(self.loop, lambda: server.nbytes)
1244 test_utils.run_until(self.loop, lambda: client.nbytes)
1322 test_utils.run_until(self.loop, lambda: proto.nbytes >= 1)
[all …]
Dutils.py110 def run_until(loop, pred, timeout=support.SHORT_TIMEOUT): function
/external/crosvm/devices/src/virtio/vhost/user/
Dworker.rs72 match ex.run_until(select2(resample, kill)) { in run()
/external/autotest/client/cros/netprotos/
Dinterface_host.py53 def run_until(self, predicate, timeout_seconds): member in InterfaceHost
/external/crosvm/devices/src/virtio/
Dblock_async.rs546 match ex.run_until(select5(queue_handlers, disk_flush, control, resample, kill)) { in run_worker()
1127 ex.run_until(fut) in read_last_sector()
1196 ex.run_until(fut) in read_beyond_last_sector()
1267 ex.run_until(fut) in get_id()
Dballoon.rs378 if let Err(e) = ex.run_until(select6(inflate, deflate, stats, command, resample, kill)) { in run_worker()
Ddescriptor_utils.rs1467 ex.run_until(region_reader_failing_io_async(&ex)).unwrap(); in region_reader_failing_io()
1503 ex.run_until(region_writer_failing_io_async(&ex)).unwrap() in region_writer_failing_io()
/external/crosvm/disk/src/
Ddisk.rs520 ex.run_until(read_zeros_async(&ex)).unwrap(); in read_async()
540 ex.run_until(write_zeros_async(&ex)).unwrap(); in write_async()