diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-11-17 15:26:12 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-11-18 10:32:27 -0800 |
| commit | 5e9f9e8c48374d6b77c4de0b9b691b7b1cc44993 (patch) | |
| tree | ecbb0bf4694c7aefb5f0d32498414cc6009ae92b /src/rt/rust_task.cpp | |
| parent | 21865ddce662767ff8319732cb55b4cdbc9ea67e (diff) | |
| download | rust-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.cpp | 2 |
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", |
