File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 0dfa1410d3bbe6eb30e2e97b8eeb2b403ac25660
2
+ refs/heads/master: 93931311ff1d034ef92e35f36c900bbd74176179
Original file line number Diff line number Diff line change @@ -278,6 +278,10 @@ rust_task::yield(size_t time_in_us) {
278
278
unblock ();
279
279
fail ();
280
280
}
281
+
282
+ // FIXME: If we are blocked, and get killed right here then we may never
283
+ // know it.
284
+
281
285
yield_timer.reset_us (time_in_us);
282
286
283
287
// Return to the scheduler.
@@ -468,8 +472,11 @@ rust_task::die() {
468
472
469
473
void
470
474
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?
472
478
wakeup (cond);
479
+ }
473
480
}
474
481
475
482
rust_crate_cache *
You can’t perform that action at this time.
0 commit comments