Skip to content

std: Fix thread::available_parallelism on Redox targets#157002

Open
willnode wants to merge 1 commit into
rust-lang:mainfrom
willnode:redox-nproc
Open

std: Fix thread::available_parallelism on Redox targets#157002
willnode wants to merge 1 commit into
rust-lang:mainfrom
willnode:redox-nproc

Conversation

@willnode
Copy link
Copy Markdown

This brings support to thread::available_parallelism on Redox targets via sysconf. It has been available since libc 0.2.177 and tested for months.

References:

@rustbot rustbot added 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 May 27, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 27, 2026

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @ChrisDenton, libs
  • @ChrisDenton, libs expanded to 8 candidates

@jieyouxu jieyouxu added the O-redox Operating system: Redox, https://www.redox-os.org/ label May 27, 2026
@bjorn3
Copy link
Copy Markdown
Member

bjorn3 commented May 27, 2026

@bors r+ rollup=always

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented May 27, 2026

📌 Commit 1f02e4d has been approved by bjorn3

It is now in the queue for this repository.

@rust-bors rust-bors Bot 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 May 27, 2026
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request May 27, 2026
std: Fix thread::available_parallelism on Redox targets

This brings support to `thread::available_parallelism` on Redox targets via `sysconf`. It has been available since `libc 0.2.177` and tested for months.

References:
- [libc implementation](rust-lang/libc#4728)
- [downstream patch](https://gitlab.redox-os.org/redox-os/rust/-/merge_requests/27)
rust-bors Bot pushed a commit that referenced this pull request May 27, 2026
Rollup of 8 pull requests

Successful merges:

 - #156970 (coverage: Use original HIR info for synthetic by-move coroutine bodies)
 - #156390 (Constify Iterator-related methods and functions)
 - #156401 (rustdoc: deterministic sorting for `doc_cfg` badges)
 - #156845 (Clarify "infinite size" in cyclic-type diagnostic refers to the type name)
 - #156973 (Add uwtable annotation to modules when required)
 - #156985 (Limit the additional DLL to Windows)
 - #156988 (interpret/validity: properly treat zero-variant enums so that we do not have to check layout.is_uninhabited)
 - #157002 (std: Fix thread::available_parallelism on Redox targets)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

O-redox Operating system: Redox, https://www.redox-os.org/ S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants