diff options
| author | Brian Anderson <andersrb@gmail.com> | 2012-06-21 21:21:57 -0700 |
|---|---|---|
| committer | Brian Anderson <andersrb@gmail.com> | 2012-06-21 21:21:57 -0700 |
| commit | 5281771a07ba6d437bcdd9d94343c04ea1ed7221 (patch) | |
| tree | 6b6be9d90fe119c484d02577edef0ed6ea36c0fe /src/rt/rust_kernel.cpp | |
| parent | 0a6943dd31e8002b2e0267b7539b55ba9da7490b (diff) | |
| parent | b8710de5fffdc45c19ccc27ad8ed98c1ee51c025 (diff) | |
| download | rust-5281771a07ba6d437bcdd9d94343c04ea1ed7221.tar.gz rust-5281771a07ba6d437bcdd9d94343c04ea1ed7221.zip | |
Merge pull request #2706 from mozilla/incoming
Incoming
Diffstat (limited to 'src/rt/rust_kernel.cpp')
| -rw-r--r-- | src/rt/rust_kernel.cpp | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/rt/rust_kernel.cpp b/src/rt/rust_kernel.cpp index dc743aceef8..b13b1490c0f 100644 --- a/src/rt/rust_kernel.cpp +++ b/src/rt/rust_kernel.cpp @@ -184,23 +184,22 @@ rust_kernel::run() { return rval; } -// FIXME: Fix all these FIXMEs void rust_kernel::fail() { - // FIXME: On windows we're getting "Application has requested the - // Runtime to terminate it in an unusual way" when trying to shutdown - // cleanly. + // FIXME (#2671): On windows we're getting "Application has + // requested the Runtime to terminate it in an unusual way" when + // trying to shutdown cleanly. set_exit_status(PROC_FAIL_CODE); #if defined(__WIN32__) exit(rval); #endif // Copy the list of schedulers so that we don't hold the lock while // running kill_all_tasks. - // FIXME: There's a lot that happens under kill_all_tasks, and I don't - // know that holding sched_lock here is ok, but we need to hold the - // sched lock to prevent the scheduler from being destroyed while - // we are using it. Probably we need to make rust_scheduler atomicly - // reference counted. + // FIXME (#2671): There's a lot that happens under kill_all_tasks, + // and I don't know that holding sched_lock here is ok, but we need + // to hold the sched lock to prevent the scheduler from being + // destroyed while we are using it. Probably we need to make + // rust_scheduler atomicly reference counted. std::vector<rust_scheduler*> scheds; { scoped_lock with(sched_lock); @@ -210,9 +209,9 @@ rust_kernel::fail() { } } - // FIXME: This is not a foolproof way to kill all tasks while ensuring - // that no new tasks or schedulers are created in the meantime that - // keep the scheduler alive. + // FIXME (#2671): This is not a foolproof way to kill all tasks + // while ensuring that no new tasks or schedulers are created in the + // meantime that keep the scheduler alive. for (std::vector<rust_scheduler*>::iterator iter = scheds.begin(); iter != scheds.end(); iter++) { (*iter)->kill_all_tasks(); |
