Brad Smith 4d776f7e5d Unbreak fiber for ELF PowerPC building with Clang
Clang also defines the uppercase __POWERPC__ symbol so the commit
2bd8eb02f8 breaks the build on ELF
PowerPC systems. Since we know this is already a PowerPC system
with BOOST_ARCH_PPC then check for the vendor __APPLE__ instead.
2023-12-23 18:12:03 -05:00
2021-12-29 18:42:41 +01:00
2020-12-15 21:56:01 -05:00
2020-06-26 17:55:47 +02:00
2021-01-19 16:10:04 +01:00
2018-12-03 14:34:57 +01:00
2017-11-08 15:30:20 +02:00
2021-06-05 03:39:36 +03:00
2016-06-07 08:14:02 +02:00
2019-01-05 15:29:14 +05:30

Boost.fiber

Boost.fiber provides a framework for micro-/userland-threads (fibers) scheduled cooperatively. The API contains classes and functions to manage and synchronize fibers similar to boost.thread.

A fiber is able to store the current execution state, including all registers and CPU flags, the instruction pointer, and the stack pointer and later restore this state. The idea is to have multiple execution paths running on a single thread using a sort of cooperative scheduling (threads are preemptively scheduled) - the running fiber decides explicitly when it yields to allow another fiber to run (context switching).

A context switch between threads costs usually thousands of CPU cycles on x86 compared to a fiber switch with less than 100 cycles. A fiber can only run on a single thread at any point in time.

Boost.fiber requires C++11!

S
Description
No description provided
Readme 14 MiB
Languages
C++ 99.5%
CMake 0.4%