Skip to content

Commit d6ab8eb

Browse files
committed
rt: Add more comments to rust_task_sleep
1 parent 9aa6705 commit d6ab8eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rt/rust_builtin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,8 +508,8 @@ chan_id_send(type_desc *t, rust_task_id target_task_id,
508508
return (uintptr_t)sent;
509509
}
510510

511-
// This is called by an intrinsic on the Rust stack.
512-
// Do not call on the C stack.
511+
// This is called by an intrinsic on the Rust stack and must run
512+
// entirely in the red zone. Do not call on the C stack.
513513
extern "C" CDECL void
514514
rust_task_sleep(rust_task *task, size_t time_in_us, bool *killed) {
515515
task->yield(time_in_us, killed);

0 commit comments

Comments
 (0)