folly::fibers::FiberImpl

Low-level fiber wrapper over Boost.Context that switches execution contexts.

Synopsis

Declared in <folly/fibers/BoostContextCompatibility.h>

class FiberImpl;

Member Functions

NameDescription
FiberImpl [constructor]Constructs a fiber that runs the given function on the provided stack.
activate Resumes execution of the fiber, transferring control into its context.
deactivate Suspends the fiber and returns control to the main context.
getStackPointer Returns the current stack pointer of the fiber, or null if unavailable.