Skip to content

Commit 314f70c

Browse files
committed
---
yaml --- r: 6404 b: refs/heads/master c: 9aa6705 h: refs/heads/master v: v3
1 parent 4354fe5 commit 314f70c

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 71bcba6815430392f167896447e34c99f33ad3a3
2+
refs/heads/master: 9aa67052e17705ee8175505836a2fa0117f044fe

trunk/src/lib/task.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ time_in_us - maximum number of microseconds to yield control for
146146
fn sleep(time_in_us: uint) {
147147
let task = rustrt::rust_get_task();
148148
let killed = false;
149+
log #fmt("yielding for %u us", time_in_us);
149150
rusti::task_sleep(task, time_in_us, killed);
150151
if killed {
151152
fail "killed";

trunk/src/rt/rust_task.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,7 @@ rust_task::grow(size_t n_frame_bytes)
268268
// Only run this on the rust stack
269269
void
270270
rust_task::yield(size_t time_in_us, bool *killed) {
271-
LOG(this, task, "task %s @0x%" PRIxPTR " yielding for %d us",
272-
name, this, time_in_us);
273-
274271
if (this->killed) {
275-
A(sched, !blocked(), "Shouldn't be blocked before failing");
276272
*killed = true;
277273
}
278274

0 commit comments

Comments
 (0)