mozilla/rust — pull request #9507 by brson (2013-09-26 03:07:44+00:00)
Title: std::rt: Implement task yielding. Fix a starvation problem

This also includes a fix for yielding from single-threaded schedulers where the scheduler would stop working before its work queue was empty. Fixes the deadlocks that this patch had previously.