| /wasmtime-44.0.1/crates/fiber/src/ |
| H A D | lib.rs | 130 pub struct Fiber<'a, Resume, Yield, Return> { 134 _phantom: PhantomData<&'a (Resume, Yield, Return)>, 137 pub struct Suspend<Resume, Yield, Return> { 139 _phantom: PhantomData<(Resume, Yield, Return)>, 146 enum RunResult<Resume, Yield, Return> { 157 Yield(Yield), enumerator 168 impl<'a, Resume, Yield, Return> Fiber<'a, Resume, Yield, Return> { 209 RunResult::Yield(y) => { in resume() 239 impl<Resume, Yield, Return> Suspend<Resume, Yield, Return> { 249 pub fn suspend(&mut self, value: Yield) -> Resume { in suspend() [all …]
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/ |
| H A D | async_yield.rs | 9 pub struct Yield { struct 13 impl Yield { implementation 20 impl Future for Yield { implementation
|
| H A D | libcalls.rs | 1289 crate::runtime::vm::Yield::new().await; in out_of_gas() 1318 UpdateDeadline::Yield(delta) => { in new_epoch() 1325 crate::runtime::vm::Yield::new().await; in new_epoch()
|
| /wasmtime-44.0.1/tests/all/ |
| H A D | epoch_interruption.rs | 37 Yield(u64), enumerator 60 InterruptMode::Yield(delta) => { in run_and_count_yields_or_trap() 98 InterruptMode::Yield(1), in epoch_yield_at_func_entry() 124 InterruptMode::Yield(5), in epoch_yield_at_loop_header() 146 InterruptMode::Yield(1), in epoch_yield_immediate() 178 InterruptMode::Yield(1), in epoch_yield_only_once() 382 Ok(UpdateDeadline::Yield(1)) in epoch_callback_yield()
|
| H A D | missing_async.rs | 284 store.epoch_deadline_callback(|_store| Ok(UpdateDeadline::Yield(1))); in epoch_yield_disallowed_without_async()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/store/ |
| H A D | async_.rs | 177 Some(Box::new(move |_store| Ok(UpdateDeadline::Yield(delta)))); in epoch_deadline_async_yield_and_update()
|
| /wasmtime-44.0.1/crates/c-api/include/wasmtime/ |
| H A D | store.hh | 30 Yield = WASMTIME_UPDATE_DEADLINE_YIELD, enumerator
|
| /wasmtime-44.0.1/tests/misc_testsuite/component-model-threading/ |
| H A D | stackful-cancellation.wast | 71 ;; Yield back to the caller, who will attempt to cancel us, but we won't see it 74 … ;; Yield back to the caller again. This time, we should receive the cancellation immediately. 100 …;; Yield nondeterministically, either back to the supertask, who will then wait on cancellation to… 122 …;; Yield to the spawned thread uncancellably. We should eventually be rescheduled without being no… 125 … ;; Yield to the spawned thread again. This time we should see the cancellation immediately.
|
| H A D | many-threads-indexed.wast | 78 ;; Yield to all threads in ascending order of assigned number
|
| H A D | threading-builtins.wast | 33 ;; Yield back to the main thread (since that is the only other one)
|
| /wasmtime-44.0.1/crates/c-api/src/ |
| H A D | store.rs | 179 None if kind == WASMTIME_UPDATE_DEADLINE_YIELD => Ok(UpdateDeadline::Yield(delta)), in wasmtime_store_epoch_deadline_callback()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/gc/ |
| H A D | gc_runtime.rs | 758 crate::runtime::vm::Yield::new().await in collect_async()
|
| /wasmtime-44.0.1/crates/wasmtime/src/runtime/ |
| H A D | store.rs | 406 Yield(u64), enumerator 2110 vm::Yield::new().await; in trace_roots() 2116 vm::Yield::new().await; in trace_roots() 2121 vm::Yield::new().await; in trace_roots()
|