Skip to content

Commit

Permalink
Update search_and_matching.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
Tortar authored Dec 3, 2024
1 parent 79720bd commit be126ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/markets/search_and_matching.jl
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ function search_and_matching!(model, multi_threading = false)


if multi_threading
Threads.@sync for (i, gs) in enumerate(chunks(1:G; n=Threads.nthreads(), split=RoundRobin()))
Threads.@threads for (i, gs) in enumerate(chunks(1:G; n=Threads.nthreads(), split=RoundRobin()))
for g in gs
Threads.@spawn loopBody(i, g)
loopBody(i, g)
end
end
else
Expand Down

0 comments on commit be126ac

Please sign in to comment.