vivo Internet Technology
Apr 19, 2023 · Fundamentals
Coroutines and Their Implementation in Tars C++
The article introduces coroutine fundamentals and classifications, then explains how the Tars C++ framework (v3.0.0) implements stackful, symmetric coroutines using Boost.Context for user‑mode context switching and an epoll‑driven scheduler that manages coroutine lifecycles, states, and operations such as go, yield, sleep, and put.
C++SchedulerTars
0 likes · 13 min read
