Spicy
Public Attributes | List of all members
hilti::rt::detail::FiberContext Struct Reference

#include <fiber.h>

Public Attributes

std::unique_ptr< detail::Fibermain
 
std::unique_ptr< detail::Fiberswitch_trampoline
 
detail::Fibercurrent = nullptr
 
std::unique_ptr<::Fibershared_stack
 
std::vector< std::unique_ptr< Fiber > > cache
 

Detailed Description

Context-wide state for managing all fibers associated with that context.

Member Data Documentation

◆ cache

std::vector<std::unique_ptr<Fiber> > hilti::rt::detail::FiberContext::cache

Cache of previously used fibers available for reuse.

◆ current

detail::Fiber* hilti::rt::detail::FiberContext::current = nullptr

Currently executing fiber .

◆ main

std::unique_ptr<detail::Fiber> hilti::rt::detail::FiberContext::main

(Pseudo-)fiber representing the main function.

◆ shared_stack

std::unique_ptr<::Fiber> hilti::rt::detail::FiberContext::shared_stack

Fiber holding the shared stack (the fiber itself isn't used, just its stack memory)

◆ switch_trampoline

std::unique_ptr<detail::Fiber> hilti::rt::detail::FiberContext::switch_trampoline

Fiber implementing the switch trampoline.


The documentation for this struct was generated from the following files: