From 17e8bd30aec86dcc07219bc90029baba6020ddf2 Mon Sep 17 00:00:00 2001 From: Erik Faulhaber <44124897+efaulhaber@users.noreply.github.com> Date: Wed, 8 May 2024 15:21:19 +0200 Subject: [PATCH] Remove thread sleeps that were needed for old Julia verisions on macOS ARM (#2) --- src/grid_nhs.jl | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/grid_nhs.jl b/src/grid_nhs.jl index c6205eb..09ac2f0 100644 --- a/src/grid_nhs.jl +++ b/src/grid_nhs.jl @@ -147,10 +147,6 @@ function initialize!(neighborhood_search::GridNeighborhoodSearch, coords_fun) empty!(hashtable) - # This is needed to prevent lagging on macOS ARM. - # See https://github.com/JuliaSIMD/Polyester.jl/issues/89 - # ThreadingUtilities.sleep_all_tasks() - for particle in 1:nparticles(neighborhood_search) # Get cell index of the particle's cell cell = cell_coords(coords_fun(particle), neighborhood_search) @@ -187,10 +183,6 @@ function update!(neighborhood_search::GridNeighborhoodSearch, coords_fun) # `collect` the keyset to be able to loop over it with `@threaded`. mark_changed_cell!(neighborhood_search, hashtable, coords_fun, Val(threaded_nhs_update)) - # This is needed to prevent lagging on macOS ARM. - # See https://github.com/JuliaSIMD/Polyester.jl/issues/89 - # ThreadingUtilities.sleep_all_tasks() - # Iterate over all marked cells and move the particles into their new cells. for thread in 1:Threads.nthreads() # Only the entries `1:cell_buffer_indices[thread]` are initialized for `thread`.