Commit Graph

41 Commits

Author SHA1 Message Date
take_cheeze cad9648bde remove unnecessary mrb_get_args in fiber_switch 2014-03-22 17:51:43 +09:00
Yukihiro "Matz" Matsumoto da34749db0 add const qualifier to pacify warning; ref #1900 2014-03-21 23:19:07 +09:00
take_cheeze e854a0e850 make Fiber#transfer compatible with CRuby 2014-03-21 22:10:47 +09:00
take_cheeze d4d4f1b0d5 implement Fiber#transfer 2014-03-21 22:10:47 +09:00
take_cheeze de65d4e2a7 make behavior of Fiber without block compatible with CRuby 2014-03-20 04:49:14 +09:00
take_cheeze daaedf320c refactor and use assert_raise in fiber test checking exception raise 2014-03-20 04:40:50 +09:00
take_cheeze 272fe3d864 use FiberError in fiber exception raise 2014-03-20 04:38:34 +09:00
take_cheeze 4be7a8b7e8 add root fiber resume test to know double resume checking is working 2014-03-19 01:05:21 +09:00
take_cheeze 19c4bf6fcb revert MRB_FIBER_RESUMED as MRB_FIBER_RESUMING to fix recurive resume 2014-03-19 01:05:21 +09:00
Yukihiro "Matz" Matsumoto 3e24e06b29 add a space after C reserved words 2014-03-18 23:57:29 +09:00
Yukihiro "Matz" Matsumoto 53a282ac0e stricter check for double resume; close #1885 2014-03-18 23:47:01 +09:00
Yukihiro "Matz" Matsumoto b844b96858 add Fiber#== from #1865 patch 2014-03-18 12:42:35 +09:00
Yukihiro "Matz" Matsumoto 4c690b23a6 add fiber assertion from #1865 patch 2014-03-18 12:41:51 +09:00
take_cheeze c73f8d4def move summary of mrbgems in default gembox to its spec 2014-03-17 00:34:24 +09:00
take_cheeze 62f05614ee Add Fiber's double resume test and fix it. 2014-03-15 15:18:06 +09:00
Yukihiro "Matz" Matsumoto 865b850b76 should check crossing C boudary from resume 2014-03-05 15:38:13 +09:00
Yukihiro "Matz" Matsumoto 2c7204fc93 mrb_fiber_yield() is available now; you have to link mruby-fiber mrbgem 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 2014-03-01 00:48:08 +09:00
Yukihiro "Matz" Matsumoto 00bdaec766 initialize ci->stackent at the top; #1691 2014-02-09 19:20:16 +09:00
mattn c850372029 Remove warning 2014-02-04 18:12:35 +09:00
Yukihiro "Matz" Matsumoto 857e384187 fibers cannot cross C function boundary; close #1680 2014-02-04 14:01:22 +09:00
Yukihiro "Matz" Matsumoto e386760cc7 add Fiber.current 2013-11-04 23:58:32 +09:00
Yukihiro "Matz" Matsumoto 40e6cdcb5c rename mrb_value_p() to mrb_ptr() since _p means predicate in mruby source 2013-08-07 17:39:28 +09:00
Yuichi Nishiwaki 8dc2fa3bc8 add read barrier to value.p
API changes:
- value.p must be accessed via mrb_value_p macro
- value.p must be mutated via MRB_SET_VALUE_P macro
2013-08-03 14:03:44 -07:00
Yukihiro "Matz" Matsumoto 6dc8c2948b should protect resume fiber by write barrier; close #1434 2013-08-04 22:53:17 +09:00
Tomoyuki Sahara 116f75a8ce "spec.author" is better for single-author gems.
"spec.author=" expects a String represents a single author.
"spec.authors=" expects an Array which is a list of multiple authors.

http://guides.rubygems.org/specification-reference/
2013-07-23 10:09:24 +09:00
Yukihiro "Matz" Matsumoto 33b81f2ad7 do not specify implementation dependant exception class names in fiber test 2013-06-06 23:54:40 +09:00
Carson McDonald 35b58e571d Test for raise when yield is called on root fiber 2013-05-28 09:04:53 -04:00
Carson McDonald 406e089a74 Add test for raise on resume after fiber is dead 2013-05-28 09:01:27 -04:00
skandhas 345ba02e4d add Fiber#alive? 2013-05-27 15:21:56 +08:00
Yukihiro "Matz" Matsumoto d78f23d28b fix fiber GC problem 2013-05-26 00:37:44 +09:00
Daniel Bovensiepen 4174690d0b Add Fiber Test for issue #1264 2013-05-24 23:50:03 +08:00
Yukihiro "Matz" Matsumoto fdb6176aee should set argc at proper position; close #1264 2013-05-25 00:22:30 +09:00
Yukihiro "Matz" Matsumoto aa2040fc97 add fiber tests 2013-05-23 15:24:55 +09:00
Yukihiro "Matz" Matsumoto 76ddf86c72 manage fiber status (create|running|resumed|terminated) 2013-05-23 15:24:31 +09:00
Yukihiro "Matz" Matsumoto 2045a35292 garbage collect context (fiber) properly 2013-05-22 11:05:22 +09:00
Yukihiro "Matz" Matsumoto 6492a3cdb8 Merge branch 'master' of github.com:mruby/mruby 2013-05-20 22:34:14 +09:00
Yukihiro "Matz" Matsumoto 58b25fdcb3 avoid unnecessary pool/syms restoration 2013-05-20 22:33:25 +09:00
Carson McDonald cc772dd3cc Change Fibder to Fiber and a couple other wording issues 2013-05-20 07:57:12 -04:00
Yukihiro "Matz" Matsumoto 7320139fd9 update error message 2013-05-20 18:23:01 +09:00
Yukihiro "Matz" Matsumoto 799852d60b update Fiber.new doc 2013-05-20 17:57:56 +09:00
Yukihiro "Matz" Matsumoto 5c0b9b703c primary mruby fiber implementation 2013-05-20 17:54:07 +09:00