polyphony 0.75 → 0.76

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 25015dd770af4d3b375af0625cfe9fe98becb328a0e77abb3101be2580279a7c
4
- data.tar.gz: e2227ea3fa7d3ec04f5b580afdc92b9d7aacbab76b9e17dd0b86fb5e4e5b6a6f
3
+ metadata.gz: ad0cf72d2ae4acd2673cff5b4c5a2fa627cd2833e3131fa4504a2dc1e4cef6ea
4
+ data.tar.gz: 69bb3e3bf2dfdffc3806c442a1d095b018f865f6c3d966ce7f5b4d789ba2bc9f
5
5
  SHA512:
6
- metadata.gz: 967f6aa30621aae39dafdb587c28e1c0ec96685fc82972adb19fb50de7adfaaa42ce861c0f941f85ad536e29b459251d22c34a6bd96f8fc89f23dd4c0ecac47a
7
- data.tar.gz: b3d6884d859c4eb61ca1d8bc8d1b727a5bf66c6c1af5280896264414bf14654650a1d8bcf3a6b744d235f5dd435e9231a0e047f95a17bfb7ce1642791c347c05
6
+ metadata.gz: 306e7c56b5fa00a078e725e508bf99934f6ea12c738cb1e1c66130b20037ad4862f8aeefe0a53fec214387579955dfde9f74b92487653af8f501c80a6a16bb1b
7
+ data.tar.gz: 3c807f56e677355ae3193db5a641caa660ab2f18cc2d7a5f8a4b38ef2b59463b0bf732cf4878cd7c93e19198f1eb330797b82f1ea69089f5ec055a3545e4d04c
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.76 2022-02-06
2
+
3
+ - Comment out `Backend_close` API
4
+
1
5
  ## 0.75 2022-02-04
2
6
 
3
7
  - Fix handling of MoveOn on main fiber of forked process
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- polyphony (0.75)
4
+ polyphony (0.76)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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
- 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
- }
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"));
@@ -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
- return Backend_close(BACKEND(), io);
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);
@@ -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);
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Polyphony
4
- VERSION = '0.75'
4
+ VERSION = '0.76'
5
5
  end
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.75'
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-04 00:00:00.000000000 Z
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.2.32
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: []