Skip to content

Commit 5e9f9e8

Browse files
committed
rt: Add some comments about methods that run on the Rust stack
1 parent 21865dd commit 5e9f9e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/rt/rust_task.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ struct rust_closure_env {
169169
type_desc *td;
170170
};
171171

172+
// This runs on the Rust stack
172173
extern "C" CDECL
173174
void task_start_wrapper(spawn_args *a)
174175
{
@@ -273,6 +274,7 @@ rust_task::yield() {
273274
yield(0);
274275
}
275276

277+
// Only run this on the rust stack
276278
void
277279
rust_task::yield(size_t time_in_us) {
278280
LOG(this, task, "task %s @0x%" PRIxPTR " yielding for %d us",

0 commit comments

Comments
 (0)