Tag

asio

1 views collected around this technical thread.

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.

CC++20Network Programming
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.

CConcurrencyNetworking
0 likes · 38 min read
Deep Dive into Asio Scheduler, Strand, and Timer Implementation
Tencent Cloud Developer
Tencent Cloud Developer
Jun 16, 2022 · Game Development

C++20 Coroutines and Execution: Building an Asynchronous Game Server Framework

The article explains how C++20 coroutines and the emerging execution framework are used to redesign a single‑threaded game‑server architecture, detailing custom async wrappers, integration with asio and libunifex, job‑type scheduling, example coroutine code, current limitations, and a roadmap toward a simpler, sender/receiver‑based async library.

C++20Game Developmentasio
0 likes · 19 min read
C++20 Coroutines and Execution: Building an Asynchronous Game Server Framework