Skip to content

Use win32 threadpool for IO events, support control transfer timeouts#171

Draft
kevinmehall wants to merge 3 commits intomainfrom
windows-threadpool
Draft

Use win32 threadpool for IO events, support control transfer timeouts#171
kevinmehall wants to merge 3 commits intomainfrom
windows-threadpool

Conversation

@kevinmehall
Copy link
Owner

@kevinmehall kevinmehall commented Nov 4, 2025

#168

Use Windows threadpool APIs for the IOCP event handling instead of our own event loop on a dedicated thread. The Win32 threadpool also provides timers, which can be used to cancel control transfers after a timeout. Like libusb, do our own timeout handling in order to provide each control transfer with its own timeout rather than relying on the globally-configured WinUSB timeout.

Works, but needs cleanup and further testing.

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.

1 participant