From be126aca1419704cb6595a9d2e66b413733fa80e Mon Sep 17 00:00:00 2001 From: Adriano Meligrana <68152031+Tortar@users.noreply.github.com> Date: Tue, 3 Dec 2024 14:56:03 +0100 Subject: [PATCH] Update search_and_matching.jl --- src/markets/search_and_matching.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/markets/search_and_matching.jl b/src/markets/search_and_matching.jl index d20b75a..2242243 100644 --- a/src/markets/search_and_matching.jl +++ b/src/markets/search_and_matching.jl @@ -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