compio-rs / compio

A thread-per-core Rust runtime with IOCP/io_uring/polling.
MIT License
420 stars 37 forks source link

feat(driver,iocp): use WaitCompletionPacket instead of ThreadPool API #264

Closed Berrysoft closed 4 months ago

Berrysoft commented 4 months ago

Previously we used ThreadPool APIs to wait for waitable objects. These APIs are backed by WaitCompletionPacket APIs, which are undocumented but easy to use. This PR is an attempt to use them.

Notice:

Berrysoft commented 4 months ago

The implementation is fine, but the APIs are undocumented and not supported by Wine.