We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ThreadingUtilities.reinit_task
1 parent 49e2703 commit dfdcd3aCopy full SHA for dfdcd3a
src/Polyester.jl
@@ -44,12 +44,7 @@ Resets the threads used by [Polyester.jl](https://github.com/JuliaSIMD/Polyester
44
"""
45
function reset_threads!()
46
PolyesterWeave.reset_workers!()
47
- foreach(eachindex(ThreadingUtilities.TASKS)) do tid
48
- t = ThreadingUtilities.TASKS[tid]
49
- if istaskfailed(t)
50
- ThreadingUtilities.initialize_task(tid)
51
- end
52
+ foreach(ThreadingUtilities.reinit_task, eachindex(ThreadingUtilities.TASKS))
53
return nothing
54
end
55
0 commit comments