Skip to content

Commit

Permalink
dynamic_thread_count also in reset_threads!
Browse files Browse the repository at this point in the history
  • Loading branch information
ranocha committed Jul 21, 2023
1 parent c42c7ac commit e4056b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Polyester.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Resets the threads used by [Polyester.jl](https://github.com/JuliaSIMD/Polyester
"""
function reset_threads!()
PolyesterWeave.reset_workers!()
for i in 1:(Threads.nthreads() - 1)
for i in 1:(dynamic_thread_count() - 1)
ThreadingUtilities.initialize_task(i)
end
return nothing
Expand Down

0 comments on commit e4056b6

Please sign in to comment.