|
Serene Runtime 1.0.0
C runtime for the Serene programming language
|
#include <stdint.h>#include "serene/rt/fiber.h"#include "serene/rt/mm/interface.h"#include "serene/utils.h"#include <sys/mman.h>Go to the source code of this file.
Macros | |
| #define | STACK_FLAGS MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE | MAP_STACK |
Functions | |
| srn_fiber_stack_t | srn_fiber_stack_alloc (size_t size) |
Allocate a stack of at least size usable bytes plus a guard page, or SRN_FIBER_DEFAULT_STACK_SIZE when size is 0. | |
| void | srn_fiber_stack_free (srn_fiber_stack_t stack) |
| #define STACK_FLAGS MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE | MAP_STACK |
Definition at line 30 of file stack_posix.c.
|
nodiscard |
Allocate a stack of at least size usable bytes plus a guard page, or SRN_FIBER_DEFAULT_STACK_SIZE when size is 0.
Platform specific.
Definition at line 34 of file stack_posix.c.
| void srn_fiber_stack_free | ( | srn_fiber_stack_t | stack | ) |
Definition at line 67 of file stack_posix.c.