Serene Runtime 1.0.0-dev
C runtime for the Serene programming language
Loading...
Searching...
No Matches
srn_fiber_config_t Struct Reference

#include <configuration.h>

Data Fields

size_t stack_size
 Size of every fiber stack, in bytes.
size_t guard_pages
 Pages in the guard band below every fiber stack.
size_t workers
 Worker count used when a run does not specify one.
size_t max_workers
 Hard ceiling a requested worker count is clamped to.

Detailed Description

Definition at line 132 of file configuration.h.

Field Documentation

◆ guard_pages

size_t srn_fiber_config_t::guard_pages

Pages in the guard band below every fiber stack.

Applies to every stack the run allocates. Must be at least one page. Read at stack allocation.

Definition at line 139 of file configuration.h.

◆ max_workers

size_t srn_fiber_config_t::max_workers

Hard ceiling a requested worker count is clamped to.

Definition at line 146 of file configuration.h.

◆ stack_size

size_t srn_fiber_config_t::stack_size

Size of every fiber stack, in bytes.

A per-fiber size of 0 falls back to this.

Definition at line 135 of file configuration.h.

◆ workers

size_t srn_fiber_config_t::workers

Worker count used when a run does not specify one.

Zero delegates to the CPU count at run time.

Definition at line 143 of file configuration.h.


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