A11 (C++ runtime)
Native C++ implementation of the A11 streaming action runtime
Loading...
Searching...
No Matches
ucontext_compat.cc File Reference
#include <array>
#include <cerrno>
#include <cstdarg>
#include <cstddef>
#include <cstdint>
#include <cstdlib>
#include <new>
#include <emscripten/fiber.h>
#include <ucontext.h>

Functions

int getcontext (ucontext_t *context)
 
void makecontext (ucontext_t *context, void(*function)(), int argc,...)
 
int swapcontext (ucontext_t *old_context, const ucontext_t *new_context)
 
int setcontext (const ucontext_t *context)
 

Function Documentation

◆ getcontext()

int getcontext ( ucontext_t *  context)

◆ makecontext()

void makecontext ( ucontext_t *  context,
void(*)()  function,
int  argc,
  ... 
)

◆ setcontext()

int setcontext ( const ucontext_t *  context)

◆ swapcontext()

int swapcontext ( ucontext_t *  old_context,
const ucontext_t *  new_context 
)