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

Use NT reserve objects #17

Open
Demi-Marie opened this issue May 10, 2020 · 4 comments
Open

Use NT reserve objects #17

Demi-Marie opened this issue May 10, 2020 · 4 comments

Comments

@Demi-Marie
Copy link

They can improve robustness under certain conditions, as they avoid late failures

@llebout
Copy link

llebout commented May 12, 2020

Care to elaborate? I'm used to Windows internals and as-is the description does not make much sense.

@Demi-Marie
Copy link
Author

NT reserved objects can be passed to NtSetIoCompletionEx and NtQueueApcThreadEx, to prevent them from failing under low-memory conditions.

@llebout
Copy link

llebout commented May 13, 2020

Alright, I see it now. It would be "reserve object" rather than "reserved object". Undocumented fields are commonly called "reserved" which puzzled me a little here.

For reference: https://wj32.org/wp/2010/07/18/the-nt-reserve-object/

That would be best filled against https://github.com/piscisaureus/wepoll

@llebout llebout changed the title Use NT reserved objects Use NT reserve objects May 13, 2020
@ghost ghost transferred this issue from smol-rs/smol Aug 22, 2020
@notgull
Copy link
Member

notgull commented Jan 26, 2023

Do you have an example of NT reserve objects in action? I can't seem to find any projects that use it in practice.

notgull pushed a commit that referenced this issue May 6, 2023
Update license badge to match Cargo.toml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants