-
-
Notifications
You must be signed in to change notification settings - Fork 17
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
WIP Igni/windowstests #3
base: master
Are you sure you want to change the base?
Conversation
ce18a58
to
1b28531
Compare
1b28531
to
d8570f7
Compare
Because @vertexclique keeps breaking stuff
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.
Smol review about small details
once_cell = "1.4.0" | ||
agnostik = "0.1.3" | ||
pin-utils = "0.1.0" | ||
socket2 = {version = "0.3.12", features = ["pair", "unix"]} | ||
winapi = "0.3.9" |
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.
winapi = "0.3.9" | |
winapi = { version = "0.3.9", default-features = false } |
Then add each feature as needed, that will drastically reduce compile times.
#[derive(Copy, Clone)] | ||
pub struct WinHandle(HANDLE); | ||
|
||
// TODO [igni]: SUPER CURSED THIS NEEDS TO GO AWAY |
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.
Actually it might not be that cursed on windows versions newer than 10. The default threadpool allows HWNDs to cross FFI bounds safely because all of the api calls are ran on the system-owned threadpool.
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.
4 years later, i learn this again. I will dive into this sometime soon folks. I will apply partial patches from this PR, since structure has changed since years. cc/ @o0Ignition0o
entries_stuff, | ||
&mut stuff.key(), | ||
entries_removed, | ||
1, // TODO: Play around with that on poll or something. |
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.
This lacks a last parameter: fAlertable (https://docs.microsoft.com/en-us/windows/win32/fileio/getqueuedcompletionstatusex-func)
No description provided.