-
Notifications
You must be signed in to change notification settings - Fork 784
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mrb_fiber_yield() is available now; you have to link mruby-fiber mrbg…
…em to use the function; there's no function available to create new fiber from C (countapart of Lua's lua_newthread), but that's because you cannot create a new fiber from C due to mruby C API design limitation. define your method to create fibers in Ruby; close #1269
- Loading branch information
Showing
2 changed files
with
26 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -374,6 +374,9 @@ mrb_value mrb_attr_get(mrb_state *mrb, mrb_value obj, mrb_sym id); | |
mrb_bool mrb_respond_to(mrb_state *mrb, mrb_value obj, mrb_sym mid); | ||
mrb_bool mrb_obj_is_instance_of(mrb_state *mrb, mrb_value obj, struct RClass* c); | ||
|
||
/* fiber functions (you need to link mruby-fiber mrbgem to use) */ | ||
mrb_value mrb_fiber_yield(mrb_state *mrb, int argc, mrb_value *argv); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
matz
Author
Member
|
||
|
||
/* memory pool implementation */ | ||
typedef struct mrb_pool mrb_pool; | ||
struct mrb_pool* mrb_pool_open(mrb_state*); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Shouldn't this belong to header like
mrbgems/mrbuy-fiber/include/mruby/fiber.h
?