Skip to content

Commit dfdcd3a

Browse files
committed
Use ThreadingUtilities.reinit_task
1 parent 49e2703 commit dfdcd3a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Polyester.jl

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,7 @@ Resets the threads used by [Polyester.jl](https://github.com/JuliaSIMD/Polyester
4444
"""
4545
function reset_threads!()
4646
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-
end
47+
foreach(ThreadingUtilities.reinit_task, eachindex(ThreadingUtilities.TASKS))
5348
return nothing
5449
end
5550
end

0 commit comments

Comments
 (0)