Boost:Context
lastmod 2026-11-10created 2015-06-232 edits
Boost.Context is a Boost C++ library that provides saving and switching of execution contexts in user space. By swapping stack and register state, it can run multiple flows of execution in turn without operating system threads, and it serves as the basis for implementing coroutines and fibers. Boost.Coroutine2 and Boost.Fiber are built on top of this library.
Context switching library.