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

Add bundle lock #211

Merged
merged 19 commits into from
Oct 21, 2024
Merged

Add bundle lock #211

merged 19 commits into from
Oct 21, 2024

Conversation

Shazwazza
Copy link
Owner

Fixes #210

Uses a dictionary of locks to minimize contention since there should only be one lock per bundle (not global). This will also first lock on the bundle name, then perform the bundling and disk writing. If another thread is blocked for that bundle and then the lock is released, than in theory the bundle will already be processed, so this does a 'double check' on entry to the lock.

@Shazwazza Shazwazza merged commit d5930c9 into develop Oct 21, 2024
3 checks passed
@Shazwazza Shazwazza deleted the add-bundle-lock branch October 21, 2024 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants