Ruby 2.7.7p221 (2022-11-24 revision 168ec2b1e5ad0e4688e963d9de019557c78feed9)
|
Go to the source code of this file.
Macros | |
#define | __asm__ asm |
Functions | |
__attribute__ ((noinline)) | |
int | coroutine_save_stack (struct coroutine_context *context) |
__attribute__ ((noreturn, noinline)) | |
__attribute__ ((noreturn)) | |
struct coroutine_context * | coroutine_transfer (struct coroutine_context *current, struct coroutine_context *target) |
__attribute__ | ( | (noreturn) | ) |
Definition at line 117 of file Context.c.
References alloca, assert, coroutine_context::base, NULL, and coroutine_context::used.
__attribute__ | ( | (noreturn, noinline) | ) |
Definition at line 88 of file Context.c.
References assert, and coroutine_context::base.
int coroutine_save_stack | ( | struct coroutine_context * | context | ) |
Definition at line 78 of file Context.c.
References _setjmp(), and coroutine_context::state.
Referenced by coroutine_transfer().
struct coroutine_context * coroutine_transfer | ( | struct coroutine_context * | current, |
struct coroutine_context * | target | ||
) |
Definition at line 136 of file Context.c.
References assert, coroutine_context::base, coroutine_restore_stack(), coroutine_save_stack(), coroutine_context::from, and coroutine_context::stack.