Skip to content

Commit 9b7ea2f

Browse files
kshyattStefanKarpinski
authored andcommitted
Some missing xrefs for Threads (#34280)
1 parent 589a6d8 commit 9b7ea2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/threadingconstructs.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ threadid() = Int(ccall(:jl_threadid, Int16, ())+1)
1414
Threads.nthreads()
1515
1616
Get the number of threads available to the Julia process. This is the inclusive upper bound
17-
on `threadid()`.
17+
on [`threadid()`](@ref).
1818
"""
1919
nthreads() = Int(unsafe_load(cglobal(:jl_n_threads, Cint)))
2020

@@ -75,7 +75,7 @@ end
7575
"""
7676
Threads.@threads
7777
78-
A macro to parallelize a for-loop to run with multiple threads. This spawns `nthreads()`
78+
A macro to parallelize a for-loop to run with multiple threads. This spawns [`nthreads()`](@ref)
7979
number of threads, splits the iteration space amongst them, and iterates in parallel.
8080
A barrier is placed at the end of the loop which waits for all the threads to finish
8181
execution, and the loop returns.

0 commit comments

Comments
 (0)