Skip to content

Commit 03a0304

Browse files
IanButterworthantoine-levitt
authored andcommitted
put default schedule first in @threads docstring (JuliaLang#44163)
1 parent 8ad3cae commit 03a0304

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/threadingconstructs.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,12 @@ For example, the above conditions imply that:
122122
- Write only to locations not shared across iterations (unless a lock or atomic operation is used).
123123
124124
Schedule options are:
125+
- `:dynamic` (default) will schedule iterations dynamically to available worker threads,
126+
assuming that the workload for each iteration is uniform.
125127
- `:static` creates one task per thread and divides the iterations equally among
126128
them, assigning each task specifically to each thread.
127129
Specifying `:static` is an error if used from inside another `@threads` loop
128130
or from a thread other than 1.
129-
- `:dynamic` (default) will schedule iterations dynamically to available worker threads,
130-
assuming that the workload for each iteration is uniform.
131131
132132
Without the scheduler argument, the exact scheduling is unspecified and varies across Julia releases.
133133

0 commit comments

Comments
 (0)