Skip to content

Commit

Permalink
Fix maybe_threaded
Browse files Browse the repository at this point in the history
  • Loading branch information
williamfgc committed Apr 17, 2024
1 parent 555bd77 commit ee21b34
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/helper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,6 @@ macro maybe_threaded(ex)
if Threads.nthreads() == 1
return esc(ex)
else
return esc(:(
if threads
Threads.@threads :static $ex
else
$ex
end
))
return esc(:(Threads.@threads :static $ex))
end
end

0 comments on commit ee21b34

Please sign in to comment.