-
Notifications
You must be signed in to change notification settings - Fork 68
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
Support waitable objects on Windows 10 #25
Comments
This would resolve issue https://github.com/stjepang/smol/issues/24 |
Do you perhaps know of any unofficial documentation on |
ProcessHacker has a function prototype but I don’t know of anyone else using it. Fortunately, the argument names should be fairly self-explanatory. |
I'd rather avoid using a system call that's entirely undocumented (this issue is the second result on Google when I look up the function name). Is there a way to work this into |
@notgull Maybe? |
I'm honestly not a big fan of that either, since it has led to breakages on certain platforms (e.g. Wine) and could very easily break with no warning on future versions of Windows. However at this point the only alternatives are explicitly deprecated ( What I'm trying to say is that we already rely on enough unstable behavior, and there's no need to build onto that house of cards more than we already do. |
libuv already relies on the same behavior, so such breakage would be noticed pretty quickly.
One alternative would be to use the Windows thread pool API, but I doubt that would be compatible. |
As of smol-rs/polling#98, waitable handles can be waited on in |
This commit allows waitable handles to be polled in Windows. This allows I/O constructs like processes, mutexes and waitable events be registered into the poller and be polled just like anything else. cc #25 Signed-off-by: John Nunley <[email protected]>
This commit allows waitable handles to be polled in Windows. This allows I/O constructs like processes, mutexes and waitable events be registered into the poller and be polled just like anything else. cc #25 Signed-off-by: John Nunley <[email protected]>
This commit allows waitable handles to be polled in Windows. This allows I/O constructs like processes, mutexes and waitable events be registered into the poller and be polled just like anything else. cc #25 Signed-off-by: John Nunley <[email protected]>
This commit allows waitable handles to be polled in Windows. This allows I/O constructs like processes, mutexes and waitable events be registered into the poller and be polled just like anything else. cc #25 Signed-off-by: John Nunley <[email protected]>
There is an (undocumented) NtAssociateWaitCompletionPacket syscall that can be used for the purpose.
The text was updated successfully, but these errors were encountered: