Tag

libunifex

1 views collected around this technical thread.

Tencent Cloud Developer
Tencent Cloud Developer
Jul 14, 2022 · Fundamentals

Implementation Details of Scheduler and Context in libunifex (CPU Thread Execution Context)

The article explains libunifex’s CPU‑thread scheduler architecture, detailing how a lightweight scheduler wraps a manual_event_loop execution context with a mutex‑protected FIFO task queue, how operations bridge receivers to the context, and outlines various thread‑bound and platform‑specific scheduler variants.

AsyncExecution ContextScheduler
0 likes · 16 min read
Implementation Details of Scheduler and Context in libunifex (CPU Thread Execution Context)
Tencent Cloud Developer
Tencent Cloud Developer
Jul 7, 2022 · Backend Development

libunifex Structured Concurrency Implementation Analysis

The article thoroughly examines libunifex’s structured concurrency implementation, detailing its DSL‑based execution framework and the three core components—Sender Factory, Sender Adapter, and Receiver—through examples like just(), then(), and sync_wait(), and explains how these pieces combine to build asynchronous pipelines.

Async ExecutionCPOasynchronous programming
0 likes · 14 min read
libunifex Structured Concurrency Implementation Analysis
Tencent Cloud Developer
Tencent Cloud Developer
Jun 29, 2022 · Fundamentals

C++ Asynchronous Programming: Understanding libunifex and Sender/Receiver Model

This article thoroughly explains libunifex’s sender/receiver model for C++ asynchronous programming, covering its design goals, module structure, pipeline composition, key functions like schedule, then, sync_wait, and the connect/start mechanisms, while demonstrating practical examples and integration with C++20 coroutines and cancellation support.

Cancellationasynchronous programmingc
0 likes · 16 min read
C++ Asynchronous Programming: Understanding libunifex and Sender/Receiver Model
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++20asioasynchronous
0 likes · 19 min read
C++20 Coroutines and Execution: Building an Asynchronous Game Server Framework