std::thread: refine available_parallelism for solaris/illumos. by devnexen · Pul...
source link: https://github.com/rust-lang/rust/pull/122992
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Conversation
Contributor
Rather than the system-wide available cpus fallback solution, we fetch the cpus bound to the current process.
added O-unix Operating system: Unix-like S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.
labels
Member
@bors r+ |
added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
labels
Am I missing something? ISTM that the new block would never be reached because the first block in the cfg_if
already covers solaris and illumos. Have you checked with strace
or whatever equivalent they have?
Member
@bors r+ |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Successfully merging this pull request may close these issues.
None yet
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK