Commit e1af4a9
Try to fix incorrect documentation of
Since #49094, the docstring of
`nthreads` has been incorrect. It currently states that
> The threads in default have id numbers `1:nthreads(:default)`.
whereas that is no longer true:
```julia
julia> filter(i -> Threads.threadpool(i) == :interactive, 1:Threads.maxthreadid())
3-element Vector{Int64}:
1
2
3
julia> filter(i -> Threads.threadpool(i) == :default, 1:Threads.maxthreadid())
6-element Vector{Int64}:
4
5
6
7
8
9
```
(cherry picked from commit 95ae27f)nthreads (#53117)1 parent ff295ca commit e1af4a9
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
0 commit comments