rt: Add more comments to rust_task_sleep

This commit is contained in:
Brian Anderson 2011-11-18 16:02:48 -08:00
parent 9aa67052e1
commit d6ab8ebb07

View file

@ -508,8 +508,8 @@ chan_id_send(type_desc *t, rust_task_id target_task_id,
return (uintptr_t)sent; return (uintptr_t)sent;
} }
// This is called by an intrinsic on the Rust stack. // This is called by an intrinsic on the Rust stack and must run
// Do not call on the C stack. // entirely in the red zone. Do not call on the C stack.
extern "C" CDECL void extern "C" CDECL void
rust_task_sleep(rust_task *task, size_t time_in_us, bool *killed) { rust_task_sleep(rust_task *task, size_t time_in_us, bool *killed) {
task->yield(time_in_us, killed); task->yield(time_in_us, killed);