-
Notifications
You must be signed in to change notification settings - Fork 230
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
optimize #[cfg] #244
optimize #[cfg] #244
Conversation
overlapped.Anonymous.Anonymous.OffsetHigh = | ||
((seek_offset as i64 >> 32) & 0xFFFFFFFF) as u32; | ||
// see https://learn.microsoft.com/zh-cn/windows/win32/api/fileapi/nf-fileapi-readfile | ||
ReadFile( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ihciah notice this change, I mistakenly thought that this method was only used for network IO before.
overlapped.Anonymous.Anonymous.OffsetHigh = | ||
((seek_offset as i64 >> 32) & 0xFFFFFFFF) as u32; | ||
// see https://learn.microsoft.com/zh-cn/windows/win32/api/fileapi/nf-fileapi-writefile | ||
WriteFile( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ihciah notice this change, I mistakenly thought that this method was only used for network IO before.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Since learning about #243 (comment), I have changed my mind and decided to improve the existing poller.