diff options
Diffstat (limited to 'src/rt/rust_task.cpp')
| -rw-r--r-- | src/rt/rust_task.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp index d03d8b57a5c..28ca9787880 100644 --- a/src/rt/rust_task.cpp +++ b/src/rt/rust_task.cpp @@ -169,6 +169,7 @@ struct rust_closure_env { type_desc *td; }; +// This runs on the Rust stack extern "C" CDECL void task_start_wrapper(spawn_args *a) { @@ -273,6 +274,7 @@ rust_task::yield() { yield(0); } +// Only run this on the rust stack void rust_task::yield(size_t time_in_us) { LOG(this, task, "task %s @0x%" PRIxPTR " yielding for %d us", |
