Does ASIO really still uses reactor instead of proactor on some OSes or is documentation just outdated?
If you go to https://www.boost.org/doc/libs/1_80_0/doc/html/boost_asio/overview/core/asyn... you will see that it says: * On many platforms, Boost.Asio implements the Proactor design pattern in terms of a Reactor, such as select, epoll or kqueue. This implementation approach corresponds to the Proactor design pattern as follows: * *[...]* * On Windows NT, 2000 and XP, Boost.Asio takes advantage of overlapped I/O to provide an efficient implementation of the Proactor design pattern. This implementation approach corresponds to the Proactor design pattern as follows: * I am unfortunately not a pattern or OS expert, but I would expect that on every modern OS proactor can be implemented without using reactor, e.g. see *https://stackoverflow.com/a/57451551/700825 https://stackoverflow.com/a/57451551/700825* The fact that mentioned Windows are NT, XP and 2000 also furthers my suspicion that docs are outdated.
Yes, asio supports io_uring. Since approx. Boost 1.78 or thereabouts.
On Sat, 29 Oct 2022 at 14:54, Ivan Matek via Boost
If you go to
https://www.boost.org/doc/libs/1_80_0/doc/html/boost_asio/overview/core/asyn...
you will see that it says:
* On many platforms, Boost.Asio implements the Proactor design pattern in terms of a Reactor, such as select, epoll or kqueue. This implementation approach corresponds to the Proactor design pattern as follows: *
*[...]*
* On Windows NT, 2000 and XP, Boost.Asio takes advantage of overlapped I/O to provide an efficient implementation of the Proactor design pattern. This implementation approach corresponds to the Proactor design pattern as follows: *
I am unfortunately not a pattern or OS expert, but I would expect that on every modern OS proactor can be implemented without using reactor, e.g. see
*https://stackoverflow.com/a/57451551/700825 https://stackoverflow.com/a/57451551/700825*
The fact that mentioned Windows are NT, XP and 2000 also furthers my suspicion that docs are outdated.
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
-- Richard Hodges hodges.r@gmail.com office: +44 2032 898 513 home: +376 861 195 mobile: +376 380 212
On Sat, Oct 29, 2022 at 4:46 PM Richard Hodges via Boost < boost@lists.boost.org> wrote:
Yes, asio supports io_uring. Since approx. Boost 1.78 or thereabouts.
Thank you. Would be nice if docs were updated. I know Boost is just volunteers and that I can just write a pull request, but as I said IDK enough about ASIO/OSes to write it so if I do it poor reviewer will have to rewrite it anyway. :)
regards, Ivan
On Sat, Oct 29, 2022 at 9:20 AM Ivan Matek via Boost
Would be nice if docs were updated.
Any update/pull request has to happen in the standalone repo: https://github.com/chriskohlhoff/asio Thanks
On Sat, Oct 29, 2022 at 7:20 PM Vinnie Falco
https://github.com/chriskohlhoff/asio
Thanks
Thank you for the pointer :) , I made an issue, I know it is not a big deal, but it is the first result for me when googling: boost asio proactor
participants (3)
-
Ivan Matek
-
Richard Hodges
-
Vinnie Falco