8000 BUG: fix race initializing legacy dtype casts by ngoldbaum · Pull Request #28290 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: fix race initializing legacy dtype casts #28290

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
Feb 11, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
MAINT: clean up slightly
  • Loading branch information
ngoldbaum committed Feb 7, 2025
commit 2a951d4bcb85b9dde6b7b0b9d6e421d93e59c092
9 changes: 4 additions & 5 deletions numpy/testing/_private/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2736,12 +2736,11 @@ def run_threaded(func, max_workers=8, pass_count=False,
if pass_barrier:
args.append(barrier)
if pass_count:
all_args = [(func, i, *args) for i in range(max_workers)]
futures = [tpe.submit(func, i, *args) for i in range(max_workers)]
else:
all_args = [(func, *args) for _ in range(max_workers)]
futures = [tpe.submit(*func_args) for func_args in all_args]
for f in futures:
f.result()
futures = [tpe.submit(func, *args) for _ in range(max_workers)]
for f in futures:
f.result()
finally:
if pass_barrier:
barrier.abort()
Expand Down
Loading
0