Registry / async / boost-fiber

boost-fiber

JSON →
library1.90.0vcpkgunverified

Boost.Fiber provides a framework for micro-threading (fibers) with cooperative scheduling in C++.

vcpkg install boost-fiber
INSTALL
IMPORT
SIG · BOOST-FIBER
B
boost-fiber
asynccppv1.90.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

boost/fiber/all.hpp
#include <boost/fiber/all.hpp>

Create two fibers that print messages and join them.

#include <boost/fiber/all.hpp> #include <iostream> int main() { boost::fibers::fiber f1([]() { std::cout << "Hello from fiber 1" << std::endl; }); boost::fibers::fiber f2([]() { std::cout << "Hello from fiber 2" << std::endl; }); f1.join(); f2.join(); return 0; }
Debug
Known issues
gotchaBoost.Fiber requires linking against the boost_context and boost_fiber libraries; it is not header-only.
fix
Add find_package(Boost REQUIRED COMPONENTS fiber context) and link with Boost::fiber.
affects: all
Upgrade
Version history
1.90.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
22
OpenAI (training)
1
Resources

No resource links recorded.

boost-fiber — pip install boost-fiber · libregistry