Tagged articles
2 articles
Page 1 of 1
Tencent Cloud Developer
Tencent Cloud Developer
Aug 23, 2022 · Backend Development

Understanding Asio Coroutine Implementation in C++20

The article explains how Asio implements C++20 coroutine support by converting callback‑based async operations into awaitables with use_awaitable, launching them via co_spawn and co_spawn_entry_point, handling result propagation and thread dispatch, and providing parallel composition operators (&&, ||) for concurrent awaiting.

AsioAsyncC++
0 likes · 26 min read
Understanding Asio Coroutine Implementation in C++20
Tencent Cloud Developer
Tencent Cloud Developer
Aug 9, 2022 · Backend Development

Deep Dive into Asio Scheduler, Strand, and Timer Implementation

The article thoroughly examines Asio’s core mechanisms—its scheduler’s post handling, the strand’s lock‑based ordering, and the timer subsystem’s heap‑driven queues—detailing executor operations, multi‑threaded execution paths, platform‑specific timer schedulers, and the efficient C++ techniques that enable high‑performance asynchronous programming.

AsioC++Networking
0 likes · 38 min read
Deep Dive into Asio Scheduler, Strand, and Timer Implementation