rt: Remove some stack-wasting macros from rust_task::yield

This commit is contained in:
Brian Anderson 2011-11-18 15:59:10 -08:00
parent 71bcba6815
commit 9aa67052e1
2 changed files with 1 additions and 4 deletions

View file

@ -146,6 +146,7 @@ time_in_us - maximum number of microseconds to yield control for
fn sleep(time_in_us: uint) {
let task = rustrt::rust_get_task();
let killed = false;
log #fmt("yielding for %u us", time_in_us);
rusti::task_sleep(task, time_in_us, killed);
if killed {
fail "killed";

View file

@ -268,11 +268,7 @@ rust_task::grow(size_t n_frame_bytes)
// Only run this on the rust stack
void
rust_task::yield(size_t time_in_us, bool *killed) {
LOG(this, task, "task %s @0x%" PRIxPTR " yielding for %d us",
name, this, time_in_us);
if (this->killed) {
A(sched, !blocked(), "Shouldn't be blocked before failing");
*killed = true;
}