Skip to content

Commit eaaa939

Browse files
committed
---
yaml --- r: 6399 b: refs/heads/master c: 3cfcdb4 h: refs/heads/master i: 6397: 5460767 6395: ba72ae9 6391: 2c2b3a6 6383: f3d7655 6367: e993b89 6335: 091bb5e 6271: ea279e1 6143: efd3c6b v: v3
1 parent 4c2691f commit eaaa939

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 57b43b53f9c673545b25338eefa7f3c620d85aa4
2+
refs/heads/master: 3cfcdb4bb279bab6f58b147486f5e2a54411b316

trunk/src/rt/rust_task.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ void task_start_wrapper(spawn_args *a)
213213
} else {
214214
task->lock.lock();
215215
task->lock.unlock();
216-
task->yield(1);
217216
}
217+
task->ctx.next->swap(task->ctx);
218218
}
219219

220220
void
@@ -274,7 +274,7 @@ rust_task::yield(size_t time_in_us) {
274274
LOG(this, task, "task %s @0x%" PRIxPTR " yielding for %d us",
275275
name, this, time_in_us);
276276

277-
if (killed && !dead()) {
277+
if (killed) {
278278
// Receive may have blocked before yielding
279279
unblock();
280280
fail();
@@ -333,7 +333,6 @@ void
333333
rust_task::conclude_failure() {
334334
fail_parent();
335335
failed = true;
336-
yield(4);
337336
}
338337

339338
void

0 commit comments

Comments
 (0)