about summary refs log tree commit diff
path: root/src/rt/rust_task.cpp
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-11-17 15:26:12 -0800
committerBrian Anderson <banderson@mozilla.com>2011-11-18 10:32:27 -0800
commit5e9f9e8c48374d6b77c4de0b9b691b7b1cc44993 (patch)
treeecbb0bf4694c7aefb5f0d32498414cc6009ae92b /src/rt/rust_task.cpp
parent21865ddce662767ff8319732cb55b4cdbc9ea67e (diff)
downloadrust-5e9f9e8c48374d6b77c4de0b9b691b7b1cc44993.tar.gz
rust-5e9f9e8c48374d6b77c4de0b9b691b7b1cc44993.zip
rt: Add some comments about methods that run on the Rust stack
Diffstat (limited to 'src/rt/rust_task.cpp')
-rw-r--r--src/rt/rust_task.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rt/rust_task.cpp b/src/rt/rust_task.cpp
index d03d8b57a5c..28ca9787880 100644
--- a/src/rt/rust_task.cpp
+++ b/src/rt/rust_task.cpp
@@ -169,6 +169,7 @@ struct rust_closure_env {
     type_desc *td;
 };
 
+// This runs on the Rust stack
 extern "C" CDECL
 void task_start_wrapper(spawn_args *a)
 {
@@ -273,6 +274,7 @@ rust_task::yield() {
     yield(0);
 }
 
+// Only run this on the rust stack
 void
 rust_task::yield(size_t time_in_us) {
     LOG(this, task, "task %s @0x%" PRIxPTR " yielding for %d us",