Skip to content

Commit ba72ae9

Browse files
committed
---
yaml --- r: 6395 b: refs/heads/master c: 9393131 h: refs/heads/master i: 6393: 2c028fd 6391: 2c2b3a6 v: v3
1 parent f073896 commit ba72ae9

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
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: 0dfa1410d3bbe6eb30e2e97b8eeb2b403ac25660
2+
refs/heads/master: 93931311ff1d034ef92e35f36c900bbd74176179

trunk/src/rt/rust_task.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ rust_task::yield(size_t time_in_us) {
278278
unblock();
279279
fail();
280280
}
281+
282+
// FIXME: If we are blocked, and get killed right here then we may never
283+
// know it.
284+
281285
yield_timer.reset_us(time_in_us);
282286

283287
// Return to the scheduler.
@@ -468,8 +472,11 @@ rust_task::die() {
468472

469473
void
470474
rust_task::unblock() {
471-
if (blocked())
475+
if (blocked()) {
476+
// FIXME: What if another thread unblocks the task between when
477+
// we checked and here?
472478
wakeup(cond);
479+
}
473480
}
474481

475482
rust_crate_cache *

0 commit comments

Comments
 (0)