StuBS
context.h File Reference

Functionality required for context switching. More...

#include "types.h"
Include dependency graph for context.h:
This graph shows which files directly or indirectly include this file:

Structs

struct  StackPointer
 Structure for saving the stack pointer when switching coroutines. More...

Functions

void * prepareContext (void *tos, void(*kickoff)(void *), void *param1=nullptr)
 Prepares a context for its first activation.
void context_switch (StackPointer &current, StackPointer &next)
 Executes the context switch.

Detailed Description

Functionality required for context switching.