rage-iodine 6.4.0 → 6.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 209fcf94b4cec12ccef647a0463a2256919859ab012e724f89ef6bbb60aea7e7
4
- data.tar.gz: c8ff6f19d0228ac11f485cc8b6c1edd85a132ae7a3ab94a8e7da8909ee103440
3
+ metadata.gz: f31a1e1293d46f952128c7ece15210e0aa556f0cea777d495a7004b1149dc4a3
4
+ data.tar.gz: 92e1058f7c51fd433b63af3ea63615ce9b2db5f6a0d1589575fb3fd4b26379bf
5
5
  SHA512:
6
- metadata.gz: 02e9552071a7f52674c564595ce4e315ab41dc40b4b0a858d6a092e11ec69a4ed5a370e0ffda2028b2fdaa99217966da276425b8b9965faec58f12e75453a5a0
7
- data.tar.gz: 1978be98f2912cde1b2c6a97483caee8118f795fcb3a22180b8a57c87e3138a31ed085dcd19d4589bb171f7bfd23d8fe649e1b3fc01f6f7907b00e86c7fe13db
6
+ metadata.gz: 2b8c75f89c3ccb98bced51aa34ac85a1f821c6e7efb99862fddd93e1cb3f99fb860b930552e38c592c1d35d5e8825872a9bc188c45f69a3cf3908fb3d1ad5da1
7
+ data.tar.gz: 10322bd9b0295cebc6d2a84b62eeeebfd17691240d02ba97b71230939c2567b81e0d4a48796639540157b100f730bc2dbf5fdb2fb99541f8966988f49d28e878
@@ -26,7 +26,8 @@ Fiber Scheduler API
26
26
  ***************************************************************************** */
27
27
 
28
28
  static void noop(intptr_t uuid, fio_protocol_s *protocol) {
29
- (void)uuid;
29
+ /* Scheduler watches are one-shot, including unwanted read events. */
30
+ fio_suspend(uuid);
30
31
  (void)protocol;
31
32
  }
32
33
 
@@ -53,6 +54,9 @@ static void iodine_scheduler_task_close(intptr_t uuid, fio_protocol_s *fio_proto
53
54
  static void iodine_scheduler_task_perform(intptr_t uuid, fio_protocol_s *fio_protocol) {
54
55
  scheduler_protocol_s *protocol = (scheduler_protocol_s *)fio_protocol;
55
56
 
57
+ /* Suspend before resuming Ruby: it may immediately attach the next wait. */
58
+ fio_suspend(uuid);
59
+
56
60
  if (!protocol->fulfilled) {
57
61
  IodineCaller.call(protocol->block, call_id);
58
62
  protocol->fulfilled = 1;
@@ -1,3 +1,3 @@
1
1
  module Iodine
2
- VERSION = '6.4.0'.freeze
2
+ VERSION = '6.5.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rage-iodine
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.4.0
4
+ version: 6.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boaz Segev