Skip to content

Windows blocking locks. #200

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 5 commits into from
Dec 11, 2024
Merged

Windows blocking locks. #200

merged 5 commits into from
Dec 11, 2024

Conversation

ncruces
Copy link
Owner

@ncruces ncruces commented Dec 11, 2024

This enables actually blocking locks on Windows.

Files need to be opened overlapped for this to work. Since I'm not sure the implications of this, only do this for shared memory files, which we never do IO on anyway.

This also fixes an issue where the shared memory was being reset every time it was opened, on Linux/macOS too.

@ncruces ncruces marked this pull request as ready for review December 11, 2024 15:05
@ncruces ncruces merged commit 7f5ea54 into main Dec 11, 2024
13 checks passed
@ncruces ncruces deleted the winlk branch December 11, 2024 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant