Yukihiro "Matz" Matsumoto
|
bd462c5edc
|
mruby-fiber: fiber_switch() to use nesting VM when it's called from C API or mrb_funcall(); close #3056
|
2016-01-02 13:48:45 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
38b9c2d308
|
mruby-fiber: add Fiber.yield description; close #3066
Fiber.yield cannot be called from #initialize which is called by
mrb_funcall(). It is mruby limitation.
|
2015-12-31 21:25:53 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
5c405dea3d
|
include changed from by quotes ("") to by brackets (<>); close #3032
|
2015-11-27 17:48:23 +09:00 |
|
Anton Davydov
|
dcc316d3b8
|
Fix typos in documentation and error messages [skip ci]
|
2015-06-19 15:52:23 +03:00 |
|
Yukihiro "Matz" Matsumoto
|
0609abb3f7
|
new API function mrb_fiber_resume(); ref #1269
|
2015-02-19 10:02:43 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
80c343aec9
|
add description comment to mrb_fiber_yield()
|
2015-02-19 10:02:02 +09:00 |
|
Tatsuhiko Kubo
|
5fa30aeaea
|
Fix mismatches for MRB_API declarations.
|
2014-08-29 01:06:22 +09:00 |
|
Tatsuhiko Kubo
|
6961317fb3
|
Remove spaces in end-of-line.
|
2014-08-25 16:49:15 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
2dcc2444fa
|
need to call write_barrier on every fiber context switch
|
2014-07-16 12:58:37 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
d5dd3e9472
|
fiber stack allocation size should be bigger than irep->nregs
|
2014-07-15 17:17:58 +09:00 |
|
David Turnbull
|
249f05e7d7
|
Clean up value.h and mrb_value boxing
|
2014-07-09 06:32:11 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
f452abd138
|
fiber stack should not be cleared by zero when MRB_NAN_BOXING is set; close #2439
|
2014-07-03 08:11:52 +09:00 |
|
take_cheeze
|
2d25a15b3b
|
Use assert_* method instead of using result value.
Use `do ... end` for test block.
|
2014-05-24 23:39:53 +09:00 |
|
Nobuyoshi Nakada
|
ab67c57f65
|
remove trailing spaces
|
2014-04-30 09:50:14 +09:00 |
|
Yukihiro "Matz" Matsumoto
|
83c1399af0
|
eliminate plain int except for a few cases like arena_index
|
2014-04-25 04:01:57 +09:00 |
|
take_cheeze
|
a457fef213
|
Remove unnecessary require 'fiber' note in Fiber.current document.
|
2014-04-21 22:14:23 +09:00 |
|
take_cheeze
|
1d6b8ba524
|
Add document to Fiber#transfer .
|
2014-04-21 22:13:39 +09:00 |
|
Takeshi Watanabe
|
824d3450c5
|
Qualify argv argument of API const.
|
2014-04-11 20:38:23 +09:00 |
|
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 |
|