On Fri Nov 28 19:16:47 2025 +0000, Paul Gofman wrote:
I can copy async.c from windows.gaming.input but then modify it so there is the needed IAsyncOperation_SpatialPerceptionAccessStatus, IAsyncOperation_SpatialPerceptionAccessStatusResult and add a parameter to run the callback synchronously. Will it be better?
The tests have an explicit wait so it doesn't look like they are already completed upon return.
I don't see how it is so much of an issue to make it go through the thread pool when we don't even care about what it does. It's a bit of a waste but nothing really cares and the point is to make future refactoring of the various asyncs, replacing them by common shared code easier.
For the same reason I don't think making changes to the shared code is a good idea, and even if some functions are not called in the context of this module, they are still being called in other module. One could argue on whether it's dead code or not but I think we can live with it as long as it is copied pristine.