Commit 7ade8cc
authored
Rollup merge of #157002 - willnode:redox-nproc, r=bjorn3
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)1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
155 | 155 | | |
156 | 156 | | |
157 | 157 | | |
| 158 | + | |
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
| |||
316 | 317 | | |
317 | 318 | | |
318 | 319 | | |
319 | | - | |
| 320 | + | |
320 | 321 | | |
321 | 322 | | |
322 | 323 | | |
| |||
0 commit comments