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

WIP Igni/windowstests #3

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

WIP Igni/windowstests #3

wants to merge 9 commits into from

Conversation

o0Ignition0o
Copy link
Collaborator

No description provided.

Copy link

@OtaK OtaK left a 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"
Copy link

Choose a reason for hiding this comment

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

Suggested change
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
Copy link

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.

Copy link
Owner

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.
Copy link

Choose a reason for hiding this comment

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

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.

None yet

3 participants