about summary refs log tree commit diff
path: root/src/rt/rust_builtin.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-11-18 16:02:48 -0800
committerBrian Anderson <banderson@mozilla.com>2011-11-18 16:02:48 -0800
commitd6ab8ebb07d0f6360d2aa32dec71c24a32c21ea6 (patch)
tree9be6bba6270e07a7b73218819df856a52f87769f /src/rt/rust_builtin.cpp
parent9aa67052e17705ee8175505836a2fa0117f044fe (diff)
downloadrust-d6ab8ebb07d0f6360d2aa32dec71c24a32c21ea6.tar.gz
rust-d6ab8ebb07d0f6360d2aa32dec71c24a32c21ea6.zip
rt: Add more comments to rust_task_sleep
Diffstat (limited to 'src/rt/rust_builtin.cpp')
-rw-r--r--src/rt/rust_builtin.cpp4
1 files 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);