Ruby 4.1.0dev (2026-10-03 revision 1b0fb238e012e17a8cbccb54c885af593c2b5f28)
Data Fields
coroutine_context Struct Reference

Data Fields

void ** stack_pointer
 
void * argument
 
void * fake_stack
 
void * stack_base
 
size_t stack_size
 
void * tsan_fiber
 
int tsan_fiber_owned
 
rb_wasm_fiber_context fc
 
struct coroutine_context * from
 
void * current_sp
 
size_t size
 
emscripten_fiber_t state
 
coroutine_start entry_func
 
coroutine_start start
 
void * stack
 
pthread_t id
 
int thread_created
 
pthread_mutex_t guard
 
pthread_cond_t schedule
 
int suspended
 
int initialized
 
ucontext_t state
 

Detailed Description

Definition at line 110 of file Context.h.

Field Documentation

◆ argument

void * coroutine_context::argument

Definition at line 113 of file Context.h.

◆ current_sp

void* coroutine_context::current_sp

Definition at line 31 of file Context.h.

◆ entry_func

coroutine_start coroutine_context::entry_func

Definition at line 27 of file Context.h.

◆ fake_stack

void * coroutine_context::fake_stack

Definition at line 116 of file Context.h.

◆ fc

rb_wasm_fiber_context coroutine_context::fc

Definition at line 27 of file Context.h.

◆ from

struct coroutine_context * coroutine_context::from

Definition at line 29 of file Context.h.

◆ guard

pthread_mutex_t coroutine_context::guard

Definition at line 46 of file Context.h.

◆ id

pthread_t coroutine_context::id

Definition at line 39 of file Context.h.

◆ initialized

int coroutine_context::initialized

Definition at line 56 of file Context.h.

◆ schedule

pthread_cond_t coroutine_context::schedule

Definition at line 49 of file Context.h.

◆ size

size_t coroutine_context::size

Definition at line 33 of file Context.h.

◆ stack

void* coroutine_context::stack

Definition at line 35 of file Context.h.

◆ stack_base

void * coroutine_context::stack_base

Definition at line 117 of file Context.h.

◆ stack_pointer

void ** coroutine_context::stack_pointer

Definition at line 112 of file Context.h.

◆ stack_size

size_t coroutine_context::stack_size

Definition at line 118 of file Context.h.

◆ start

coroutine_start coroutine_context::start

Definition at line 32 of file Context.h.

◆ state [1/2]

emscripten_fiber_t coroutine_context::state

Definition at line 26 of file Context.h.

◆ state [2/2]

ucontext_t coroutine_context::state

Definition at line 28 of file Context.h.

◆ suspended

int coroutine_context::suspended

Definition at line 53 of file Context.h.

◆ thread_created

int coroutine_context::thread_created

Definition at line 43 of file Context.h.

◆ tsan_fiber

void* coroutine_context::tsan_fiber

Definition at line 122 of file Context.h.

◆ tsan_fiber_owned

int coroutine_context::tsan_fiber_owned

Definition at line 126 of file Context.h.


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