Re: [Capy review] Some questions

Ruben Perez via Boost <[email protected]> Tue, 23 Jun 2026 19:17:55 +0200
Newsgroups gmane.comp.lib.boost.devel
Message-ID <CACR-mdK9qMoNp5kS6-_DTHr8h9qtz6K-S04sv=eQWPtSKkxq0Q@mail.gmail.com>
>>
>> Out of curiosity, how does the out-of-the-box Corosio integration
>> work? I mean, the example uses asio::io_context::run(). How does this
>> get to service Corosio's reactor?
>
>
> You create a service through the asio executor that contains a capy::execution_context - and vice versa.
> When the corosio::socket then gets the scheduler from this context, the scheduler *should* create a thread for the reactor.
> Then, the completion would do a dispatch back onto the asio executor.
>
> The above isn't clearly defined in capy yet, which is another reason it's not merged at this point.
>
Thanks. I thought io_context::run() used the calling thread to run the
scheduler. If I have the time, I'll try to experiment with this before
the review ends.

Best,
Ruben.
_______________________________________________
Boost mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.boost.org/mailman3/lists/boost.lists.boost.org/
Archived at: https://lists.boost.org/archives/list/[email protected]/message/EIXU3JIZJ5JLLIKZRPM7DXTACH5YYNTA/