event 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/event/selector/selector.c +7 -4
- data/lib/event/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ede0cef441063c9e8675858ccbb0fb10a9e14403e812829531f8a5fedf144499
|
4
|
+
data.tar.gz: 47519c0f64233d29be411f6148cb1c831734ed36a56f863881d5fa14e2f7245e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16a588ae4f5319f430ffd31cf0374defaf099b87db406f27c6af8b667666038725587dfac4d3b328a5496a65335882263b846de1a67934df432beaceae23cff7
|
7
|
+
data.tar.gz: 61a29c0c4379953b56ac6aef3b002513ac58603f16b2c9656afb61fcfbb91b9954a47bbf3bb04a414977f7ba11205974e229c1d38856fc491b84124cae7814cf
|
@@ -26,14 +26,17 @@ static ID id_transfer, id_alive_p;
|
|
26
26
|
VALUE Event_Selector_fiber_transfer(VALUE fiber, int argc, VALUE *argv) {
|
27
27
|
// TODO Consider introducing something like `rb_fiber_scheduler_transfer(...)`.
|
28
28
|
#ifdef HAVE__RB_FIBER_TRANSFER
|
29
|
-
if (RTEST(
|
30
|
-
|
29
|
+
if (RTEST(rb_obj_is_fiber(fiber))) {
|
30
|
+
if (RTEST(rb_fiber_alive_p(fiber))) {
|
31
|
+
return rb_fiber_transfer(fiber, argc, argv);
|
32
|
+
}
|
33
|
+
|
34
|
+
return Qnil;
|
31
35
|
}
|
32
|
-
#
|
36
|
+
#endif
|
33
37
|
if (RTEST(rb_funcall(fiber, id_alive_p, 0))) {
|
34
38
|
return rb_funcallv(fiber, id_transfer, argc, argv);
|
35
39
|
}
|
36
|
-
#endif
|
37
40
|
|
38
41
|
return Qnil;
|
39
42
|
}
|
data/lib/event/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: event
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
requirements: []
|
112
|
-
rubygems_version: 3.
|
112
|
+
rubygems_version: 3.3.0.dev
|
113
113
|
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: An event loop.
|