polyphony 0.89 → 0.90
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/ext/polyphony/backend_io_uring.c +3 -4
- data/ext/polyphony/backend_libev.c +2 -2
- data/ext/polyphony/extconf.rb +3 -2
- data/lib/polyphony/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9f125403a124d0374ebef23adfd4fe7f553767797003d63513ef780a248370b
|
4
|
+
data.tar.gz: 682134740af1614ac5e31d49c7d6a8ac8b881bbc26e5911e2f12a81f5ea52b27
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6292c9f2ddd6faf3d8df9565f8e6dce3be9ecd64fff95201bd2907cfacdb46eac5ef87a9281a3e88324471951493b6ebaa150dad40afb6a19958dd1e5992c0c
|
7
|
+
data.tar.gz: 10f8e607a0bd403664318e03abd4bbb4ab16704a69d1c0858ce5c9269c5c883e081dd95c51488dce7732ae471bf04cd139c0cbfb9623d6751a857551304e60f5
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -264,7 +264,6 @@ inline struct backend_stats backend_get_stats(VALUE self) {
|
|
264
264
|
|
265
265
|
static inline struct io_uring_sqe *io_uring_backend_get_sqe(Backend_t *backend) {
|
266
266
|
struct io_uring_sqe *sqe;
|
267
|
-
try:
|
268
267
|
sqe = io_uring_get_sqe(&backend->ring);
|
269
268
|
if (sqe) goto done;
|
270
269
|
|
@@ -384,7 +383,7 @@ VALUE Backend_read(VALUE self, VALUE io, VALUE str, VALUE length, VALUE to_eof,
|
|
384
383
|
|
385
384
|
if (string_cap < expected_read_length + buf_pos) {
|
386
385
|
shrinkable_string = io_setstrbuf(&str, expected_read_length + buf_pos);
|
387
|
-
buffer.ptr = RSTRING_PTR(str) + buf_pos;
|
386
|
+
buffer.ptr = (unsigned char *)RSTRING_PTR(str) + buf_pos;
|
388
387
|
buffer.len = expected_read_length;
|
389
388
|
}
|
390
389
|
else {
|
@@ -431,7 +430,7 @@ VALUE Backend_read(VALUE self, VALUE io, VALUE str, VALUE length, VALUE to_eof,
|
|
431
430
|
rb_str_resize(str, total + buf_pos);
|
432
431
|
rb_str_modify_expand(str, rb_str_capacity(str));
|
433
432
|
shrinkable_string = 0;
|
434
|
-
buffer.ptr = RSTRING_PTR(str) + total + buf_pos;
|
433
|
+
buffer.ptr = (unsigned char *)RSTRING_PTR(str) + total + buf_pos;
|
435
434
|
buffer.len = rb_str_capacity(str) - total - buf_pos;
|
436
435
|
}
|
437
436
|
else {
|
@@ -688,7 +687,7 @@ VALUE Backend_recv(VALUE self, VALUE io, VALUE str, VALUE length, VALUE pos) {
|
|
688
687
|
|
689
688
|
if (string_cap < expected_read_length + buf_pos) {
|
690
689
|
shrinkable_string = io_setstrbuf(&str, expected_read_length + buf_pos);
|
691
|
-
buffer.ptr = RSTRING_PTR(str) + buf_pos;
|
690
|
+
buffer.ptr = (unsigned char *)RSTRING_PTR(str) + buf_pos;
|
692
691
|
buffer.len = expected_read_length;
|
693
692
|
}
|
694
693
|
else {
|
@@ -311,7 +311,7 @@ VALUE Backend_read(VALUE self, VALUE io, VALUE str, VALUE length, VALUE to_eof,
|
|
311
311
|
|
312
312
|
if (string_cap < expected_read_length + buf_pos) {
|
313
313
|
shrinkable_string = io_setstrbuf(&str, expected_read_length + buf_pos);
|
314
|
-
buffer.ptr = RSTRING_PTR(str) + buf_pos;
|
314
|
+
buffer.ptr = (unsigned char *)RSTRING_PTR(str) + buf_pos;
|
315
315
|
buffer.len = expected_read_length;
|
316
316
|
}
|
317
317
|
else {
|
@@ -353,7 +353,7 @@ VALUE Backend_read(VALUE self, VALUE io, VALUE str, VALUE length, VALUE to_eof,
|
|
353
353
|
rb_str_resize(str, total + buf_pos);
|
354
354
|
rb_str_modify_expand(str, rb_str_capacity(str));
|
355
355
|
shrinkable_string = 0;
|
356
|
-
buffer.ptr = RSTRING_PTR(str) + total + buf_pos;
|
356
|
+
buffer.ptr = (unsigned char *)RSTRING_PTR(str) + total + buf_pos;
|
357
357
|
buffer.len = rb_str_capacity(str) - total - buf_pos;
|
358
358
|
}
|
359
359
|
else {
|
data/ext/polyphony/extconf.rb
CHANGED
@@ -71,7 +71,8 @@ $defs << '-DPOLYPHONY_PLAYGROUND' if ENV['POLYPHONY_PLAYGROUND']
|
|
71
71
|
|
72
72
|
CONFIG['optflags'] << ' -fno-strict-aliasing' unless RUBY_PLATFORM =~ /mswin/
|
73
73
|
|
74
|
-
|
75
|
-
|
74
|
+
if RUBY_VERSION >= '3.1'
|
75
|
+
have_func('rb_fiber_transfer', 'ruby.h')
|
76
|
+
end
|
76
77
|
|
77
78
|
create_makefile 'polyphony_ext'
|
data/lib/polyphony/version.rb
CHANGED
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polyphony
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.90'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sharon Rosner
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2022-03-21 00:00:00.000000000 Z
|
@@ -136,7 +136,7 @@ dependencies:
|
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 1.1.4
|
139
|
-
description:
|
139
|
+
description:
|
140
140
|
email: sharon@noteflakes.com
|
141
141
|
executables: []
|
142
142
|
extensions:
|
@@ -639,7 +639,7 @@ metadata:
|
|
639
639
|
documentation_uri: https://digital-fabric.github.io/polyphony/
|
640
640
|
homepage_uri: https://digital-fabric.github.io/polyphony/
|
641
641
|
changelog_uri: https://github.com/digital-fabric/polyphony/blob/master/CHANGELOG.md
|
642
|
-
post_install_message:
|
642
|
+
post_install_message:
|
643
643
|
rdoc_options:
|
644
644
|
- "--title"
|
645
645
|
- polyphony
|
@@ -658,8 +658,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
658
658
|
- !ruby/object:Gem::Version
|
659
659
|
version: '0'
|
660
660
|
requirements: []
|
661
|
-
rubygems_version: 3.
|
662
|
-
signing_key:
|
661
|
+
rubygems_version: 3.1.6
|
662
|
+
signing_key:
|
663
663
|
specification_version: 4
|
664
664
|
summary: Fine grained concurrency for Ruby
|
665
665
|
test_files: []
|