From d6ab8ebb07d0f6360d2aa32dec71c24a32c21ea6 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Fri, 18 Nov 2011 16:02:48 -0800 Subject: [PATCH] rt: Add more comments to rust_task_sleep --- src/rt/rust_builtin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rt/rust_builtin.cpp b/src/rt/rust_builtin.cpp index 6b57fae7470..922b4024bc0 100644 --- a/src/rt/rust_builtin.cpp +++ b/src/rt/rust_builtin.cpp @@ -508,8 +508,8 @@ chan_id_send(type_desc *t, rust_task_id target_task_id, return (uintptr_t)sent; } -// This is called by an intrinsic on the Rust stack. -// Do not call on the C stack. +// This is called by an intrinsic on the Rust stack and must run +// entirely in the red zone. Do not call on the C stack. extern "C" CDECL void rust_task_sleep(rust_task *task, size_t time_in_us, bool *killed) { task->yield(time_in_us, killed);