Skip to content

Commit

Permalink
Set TaskInner.pinned_cpu when spawning pinned tasks (#1044)
Browse files Browse the repository at this point in the history
* When spawning a pinned task, `spawn` didn't previously set
  `inner.pinned_cpu` for the newly-created `Task`.

* This is not currently a problem because the scheduler doesn't perform
  task migration across CPUs, but when that gets enabled (in #1042),
  it would cause the pinning choice to be ignore by the scheduler.

Signed-off-by: Klimenty Tsoutsman <klim@tsoutsman.com> cae8ca8
  • Loading branch information
kevinaboos committed Sep 19, 2023
1 parent b67fa3e commit 1e7f609
Show file tree
Hide file tree
Showing 15 changed files with 44 additions and 34 deletions.
2 changes: 1 addition & 1 deletion doc/implementors/core/convert/trait.From.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion doc/implementors/core/future/future/trait.Future.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1e7f609

Please sign in to comment.