mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
coroutine/emscripten/: Experimentally support emscripten fiber API
This commit is contained in:
parent
f12c33b611
commit
62283f7a7a
3 changed files with 89 additions and 1 deletions
8
coroutine/emscripten/Context.c
Normal file
8
coroutine/emscripten/Context.c
Normal file
|
@ -0,0 +1,8 @@
|
|||
#include "Context.h"
|
||||
|
||||
void coroutine_trampoline(void * _context)
|
||||
{
|
||||
struct coroutine_context * context = _context;
|
||||
|
||||
context->entry_func(context->from, context);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue