Skip to content
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

Make lazy_load.load partially thread-safe #90

Merged
merged 1 commit into from
Jan 30, 2024

Conversation

stefanv
Copy link
Member

@stefanv stefanv commented Jan 25, 2024

Attempted to close #88, but closed another race condition instead.

@stefanv stefanv mentioned this pull request Jan 25, 2024
@codecov-commenter
Copy link

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (bf82b68) 93.95% compared to head (d56c717) 94.44%.

Files Patch % Lines
lazy_loader/__init__.py 95.65% 1 Missing ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #90      +/-   ##
==========================================
+ Coverage   93.95%   94.44%   +0.48%     
==========================================
  Files           4        5       +1     
  Lines         182      198      +16     
==========================================
+ Hits          171      187      +16     
  Misses         11       11              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jarrodmillman jarrodmillman added the type: Bug fix Something isn't working label Jan 25, 2024
@stefanv stefanv changed the title Make lazy_load.load thread-safe Make lazy_load.load partially thread-safe Jan 30, 2024
@stefanv
Copy link
Member Author

stefanv commented Jan 30, 2024

@effigies This may still be worth getting in; it solves the problem when lazy loading, e.g., numpy in parallel.

Copy link
Collaborator

@effigies effigies left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think this is worth getting in.

@stefanv stefanv merged commit a33f3f9 into scientific-python:main Jan 30, 2024
26 checks passed
@jarrodmillman jarrodmillman added this to the 0.4 milestone Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: Bug fix Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Broken thread safety
4 participants