mozilla/rust — pull request #2104 by Jonanin (2012-04-02 05:16:50+00:00)
Title: Add global rust_get_current_task

Previously two methods existed: rust_sched_loop::get_task and rust_task::get_task_from_tcb. Merge both of them into one, trying the faster one (tcb) first, and if that fails, the slower one from the tls.