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.
reset_threads!
1 parent 5e8bcc6 commit 49e2703Copy full SHA for 49e2703
src/Polyester.jl
@@ -44,7 +44,12 @@ Resets the threads used by [Polyester.jl](https://github.com/JuliaSIMD/Polyester
44
"""
45
function reset_threads!()
46
PolyesterWeave.reset_workers!()
47
- foreach(ThreadingUtilities.initialize_task, eachindex(ThreadingUtilities.TASKS))
+ foreach(eachindex(ThreadingUtilities.TASKS)) do tid
48
+ t = ThreadingUtilities.TASKS[tid]
49
+ if istaskfailed(t)
50
+ ThreadingUtilities.initialize_task(tid)
51
+ end
52
53
return nothing
54
end
55
0 commit comments