Skip to content

Commit 17e8bd3

Browse files
authored
Remove thread sleeps that were needed for old Julia verisions on macOS ARM (#2)
1 parent 720e728 commit 17e8bd3

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/grid_nhs.jl

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -147,10 +147,6 @@ function initialize!(neighborhood_search::GridNeighborhoodSearch, coords_fun)
147147

148148
empty!(hashtable)
149149

150-
# This is needed to prevent lagging on macOS ARM.
151-
# See https://github.com/JuliaSIMD/Polyester.jl/issues/89
152-
# ThreadingUtilities.sleep_all_tasks()
153-
154150
for particle in 1:nparticles(neighborhood_search)
155151
# Get cell index of the particle's cell
156152
cell = cell_coords(coords_fun(particle), neighborhood_search)
@@ -187,10 +183,6 @@ function update!(neighborhood_search::GridNeighborhoodSearch, coords_fun)
187183
# `collect` the keyset to be able to loop over it with `@threaded`.
188184
mark_changed_cell!(neighborhood_search, hashtable, coords_fun, Val(threaded_nhs_update))
189185

190-
# This is needed to prevent lagging on macOS ARM.
191-
# See https://github.com/JuliaSIMD/Polyester.jl/issues/89
192-
# ThreadingUtilities.sleep_all_tasks()
193-
194186
# Iterate over all marked cells and move the particles into their new cells.
195187
for thread in 1:Threads.nthreads()
196188
# Only the entries `1:cell_buffer_indices[thread]` are initialized for `thread`.

0 commit comments

Comments
 (0)