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

Open non-blocking regular files as overlapped on Windows #14921

Conversation

HertzDevil
Copy link
Contributor

Extracted from #14321.

@HertzDevil HertzDevil added kind:feature topic:stdlib:concurrency platform:windows Windows support based on the MSVC toolchain / Win32 API topic:stdlib:files labels Aug 20, 2024
@@ -15,7 +15,7 @@ module Crystal::System::File
fd
end

def self.open(filename : String, flags : Int32, perm : ::File::Permissions) : {LibC::Int, Errno}
def self.open(filename : String, flags : Int32, perm : ::File::Permissions, blocking _blocking) : {LibC::Int, Errno}
Copy link
Contributor

Choose a reason for hiding this comment

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

question: why _blocking?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is to make it explicit that the variable isn't actually used (IIRC there was some discussion of actually initializing system_blocking here but I couldn't find it)

@straight-shoota straight-shoota modified the milestone: 1.14.0 Aug 21, 2024
@straight-shoota straight-shoota merged commit c462cd6 into crystal-lang:master Aug 23, 2024
65 checks passed
@HertzDevil HertzDevil deleted the feature/windows-overlapped-file-open branch August 23, 2024 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:feature platform:windows Windows support based on the MSVC toolchain / Win32 API topic:stdlib:concurrency topic:stdlib:files
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants