polyphony 0.75 → 0.76
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 +34 -34
- data/ext/polyphony/polyphony.c +4 -4
- data/ext/polyphony/polyphony.h +1 -1
- data/lib/polyphony/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad0cf72d2ae4acd2673cff5b4c5a2fa627cd2833e3131fa4504a2dc1e4cef6ea
|
4
|
+
data.tar.gz: 69bb3e3bf2dfdffc3806c442a1d095b018f865f6c3d966ce7f5b4d789ba2bc9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 306e7c56b5fa00a078e725e508bf99934f6ea12c738cb1e1c66130b20037ad4862f8aeefe0a53fec214387579955dfde9f74b92487653af8f501c80a6a16bb1b
|
7
|
+
data.tar.gz: 3c807f56e677355ae3193db5a641caa660ab2f18cc2d7a5f8a4b38ef2b59463b0bf732cf4878cd7c93e19198f1eb330797b82f1ea69089f5ec055a3545e4d04c
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1017,39 +1017,39 @@ VALUE Backend_wait_io(VALUE self, VALUE io, VALUE write) {
|
|
1017
1017
|
return self;
|
1018
1018
|
}
|
1019
1019
|
|
1020
|
-
VALUE Backend_close(VALUE self, VALUE io) {
|
1021
|
-
|
1022
|
-
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
|
1028
|
-
|
1029
|
-
|
1030
|
-
|
1031
|
-
|
1032
|
-
|
1033
|
-
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1051
|
-
|
1052
|
-
}
|
1020
|
+
// VALUE Backend_close(VALUE self, VALUE io) {
|
1021
|
+
// Backend_t *backend;
|
1022
|
+
// rb_io_t *fptr;
|
1023
|
+
// VALUE underlying_io = rb_ivar_get(io, ID_ivar_io);
|
1024
|
+
// VALUE resume_value = Qnil;
|
1025
|
+
// op_context_t *ctx;
|
1026
|
+
// struct io_uring_sqe *sqe;
|
1027
|
+
// int result;
|
1028
|
+
// int completed;
|
1029
|
+
|
1030
|
+
// if (underlying_io != Qnil) io = underlying_io;
|
1031
|
+
// GetBackend(self, backend);
|
1032
|
+
// GetOpenFile(io, fptr);
|
1033
|
+
|
1034
|
+
// if (fptr->fd < 0) return Qnil;
|
1035
|
+
|
1036
|
+
// io_unset_nonblock(fptr, io);
|
1037
|
+
|
1038
|
+
// ctx = context_store_acquire(&backend->store, OP_CLOSE);
|
1039
|
+
// sqe = io_uring_get_sqe(&backend->ring);
|
1040
|
+
// io_uring_prep_close(sqe, fptr->fd);
|
1041
|
+
// result = io_uring_backend_defer_submit_and_await(backend, sqe, ctx, &resume_value);
|
1042
|
+
// completed = context_store_release(&backend->store, ctx);
|
1043
|
+
// RAISE_IF_EXCEPTION(resume_value);
|
1044
|
+
// if (!completed) return resume_value;
|
1045
|
+
// RB_GC_GUARD(resume_value);
|
1046
|
+
|
1047
|
+
// if (result < 0) rb_syserr_fail(-result, strerror(-result));
|
1048
|
+
|
1049
|
+
// fptr_finalize(fptr);
|
1050
|
+
// // fptr->fd = -1;
|
1051
|
+
// return io;
|
1052
|
+
// }
|
1053
1053
|
|
1054
1054
|
inline struct __kernel_timespec double_to_timespec(double duration) {
|
1055
1055
|
double duration_integral;
|
@@ -1640,7 +1640,7 @@ void Init_Backend() {
|
|
1640
1640
|
rb_define_method(cBackend, "wait_io", Backend_wait_io, 2);
|
1641
1641
|
rb_define_method(cBackend, "waitpid", Backend_waitpid, 1);
|
1642
1642
|
rb_define_method(cBackend, "write", Backend_write_m, -1);
|
1643
|
-
rb_define_method(cBackend, "close", Backend_close, 1);
|
1643
|
+
// rb_define_method(cBackend, "close", Backend_close, 1);
|
1644
1644
|
|
1645
1645
|
SYM_io_uring = ID2SYM(rb_intern("io_uring"));
|
1646
1646
|
SYM_send = ID2SYM(rb_intern("send"));
|
data/ext/polyphony/polyphony.c
CHANGED
@@ -125,9 +125,9 @@ VALUE Polyphony_backend_write(int argc, VALUE *argv, VALUE self) {
|
|
125
125
|
return Backend_write_m(argc, argv, BACKEND());
|
126
126
|
}
|
127
127
|
|
128
|
-
VALUE Polyphony_backend_close(VALUE self, VALUE io) {
|
129
|
-
|
130
|
-
}
|
128
|
+
// VALUE Polyphony_backend_close(VALUE self, VALUE io) {
|
129
|
+
// return Backend_close(BACKEND(), io);
|
130
|
+
// }
|
131
131
|
|
132
132
|
void Init_Polyphony() {
|
133
133
|
mPolyphony = rb_define_module("Polyphony");
|
@@ -153,7 +153,7 @@ void Init_Polyphony() {
|
|
153
153
|
rb_define_singleton_method(mPolyphony, "backend_wait_io", Polyphony_backend_wait_io, 2);
|
154
154
|
rb_define_singleton_method(mPolyphony, "backend_waitpid", Polyphony_backend_waitpid, 1);
|
155
155
|
rb_define_singleton_method(mPolyphony, "backend_write", Polyphony_backend_write, -1);
|
156
|
-
rb_define_singleton_method(mPolyphony, "backend_close", Polyphony_backend_close, 1);
|
156
|
+
// rb_define_singleton_method(mPolyphony, "backend_close", Polyphony_backend_close, 1);
|
157
157
|
rb_define_singleton_method(mPolyphony, "backend_verify_blocking_mode", Backend_verify_blocking_mode, 2);
|
158
158
|
|
159
159
|
rb_define_global_function("snooze", Polyphony_snooze, 0);
|
data/ext/polyphony/polyphony.h
CHANGED
@@ -114,7 +114,7 @@ VALUE Backend_wait_event(VALUE self, VALUE raise);
|
|
114
114
|
VALUE Backend_wait_io(VALUE self, VALUE io, VALUE write);
|
115
115
|
VALUE Backend_waitpid(VALUE self, VALUE pid);
|
116
116
|
VALUE Backend_write_m(int argc, VALUE *argv, VALUE self);
|
117
|
-
VALUE Backend_close(VALUE self, VALUE io);
|
117
|
+
// VALUE Backend_close(VALUE self, VALUE io);
|
118
118
|
|
119
119
|
VALUE Backend_poll(VALUE self, VALUE blocking);
|
120
120
|
VALUE Backend_wait_event(VALUE self, VALUE raise_on_exception);
|
data/lib/polyphony/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polyphony
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.76'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sharon Rosner
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|
@@ -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:
|
@@ -412,7 +412,7 @@ metadata:
|
|
412
412
|
documentation_uri: https://digital-fabric.github.io/polyphony/
|
413
413
|
homepage_uri: https://digital-fabric.github.io/polyphony/
|
414
414
|
changelog_uri: https://github.com/digital-fabric/polyphony/blob/master/CHANGELOG.md
|
415
|
-
post_install_message:
|
415
|
+
post_install_message:
|
416
416
|
rdoc_options:
|
417
417
|
- "--title"
|
418
418
|
- polyphony
|
@@ -431,8 +431,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
431
431
|
- !ruby/object:Gem::Version
|
432
432
|
version: '0'
|
433
433
|
requirements: []
|
434
|
-
rubygems_version: 3.
|
435
|
-
signing_key:
|
434
|
+
rubygems_version: 3.3.3
|
435
|
+
signing_key:
|
436
436
|
specification_version: 4
|
437
437
|
summary: Fine grained concurrency for Ruby
|
438
438
|
test_files: []
|