Io_context scheduler for asio integration #1910
Unanswered
jessmorecroft
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I’m wondering if anyone using the boost asio integration has been using a scheduler based on boost::asio::io_context? I have been using the scheduler via the provided execpools::asio_thread_pool, but given I only need one thread I’d prefer to use io_context more directly. Writing a scheduler seems fairly straightforward, in this case roughly I imagine encapsulating a single thread to call context.run with a work guard member, and a schedule sender that posts a completion to the context.
If anyone has done this and would like to share I’d love to see it. in any case I’ll try to post something along the lines of above when I get to it, hopefully soon.
Beta Was this translation helpful? Give feedback.
All reactions