Skip to content

Commit 279ec14

Browse files
authored
Merge pull request #160 from efaulhaber/reset-if-task-failed
Reset only failed tasks in `reset_threads!`
2 parents 5e8bcc6 + a1a03ae commit 279ec14

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ PolyesterWeave = "0.1.8, 0.2"
2525
Static = "0.7, 0.8, 1"
2626
StaticArrayInterface = "1"
2727
StrideArraysCore = "0.3.11, 0.4, 0.5"
28-
ThreadingUtilities = "0.5"
28+
ThreadingUtilities = "0.5.4"
2929
julia = "1.6"
3030

3131
[extras]

src/Polyester.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +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(ThreadingUtilities.initialize_task, eachindex(ThreadingUtilities.TASKS))
47+
foreach(ThreadingUtilities.reinit_task, eachindex(ThreadingUtilities.TASKS))
4848
return nothing
4949
end
5050
end

0 commit comments

Comments
 (0)