Skip to content

Commit 57b43b5

Browse files
committed
rt: Add comments to rust_task::yield
1 parent d1ef29a commit 57b43b5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/rt/rust_task.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ rust_task::yield(size_t time_in_us) {
275275
name, this, time_in_us);
276276

277277
if (killed && !dead()) {
278+
// Receive may have blocked before yielding
278279
unblock();
279280
fail();
280281
}

0 commit comments

Comments
 (0)