Sujet : Re: Threads across programming languages
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.lang.c++ comp.lang.cDate : 01. May 2024, 21:31:04
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v0u8q7$3c1r5$3@dont-email.me>
References : 1 2 3 4 5 6 7 8
User-Agent : Pan/0.155 (Kherson; fc5a80b8)
On Wed, 1 May 2024 11:00:04 +0200, Bonita Montero wrote:
Am 01.05.2024 um 10:53 schrieb Lawrence D'Oliveiro:
No async/await? Oh, they haven’t added that to C++--yet.
No, Boost.ASIO is event driven with asynchronous callbacks in a foreign
thread's context.
Callbacks can be a clunky way of event handling, since they force you to
break up your logic sequence into discontinguous pieces. This is why
coroutines have become popular, since they keep the logic flow together.